diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2017-06-29 07:23:48 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2017-06-29 07:23:48 +0300 |
commit | 6190c39e2c54ab0e9ea15a7de6cf8812aa4b5377 (patch) | |
tree | fbbaa0e3232513134df180d0fe3ccdf86ea822e6 /app/views/projects/tree/_tree_content.html.haml | |
parent | c2e34bab0d0f039cab749db7b9fa4c7cef766004 (diff) |
Functionality to move between files.
To show file and to start to go back.
Diffstat (limited to 'app/views/projects/tree/_tree_content.html.haml')
-rw-r--r-- | app/views/projects/tree/_tree_content.html.haml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/app/views/projects/tree/_tree_content.html.haml b/app/views/projects/tree/_tree_content.html.haml index 307bef50966..c41ef4ecc94 100644 --- a/app/views/projects/tree/_tree_content.html.haml +++ b/app/views/projects/tree/_tree_content.html.haml @@ -1,13 +1,18 @@ .tree-content-holder %header Project - #sidebar - %ul - %repo-file{ "v-for" => "file in files", ":key" => "file.id", ":file" => "file","@linkclicked" => "linkClicked(file)" } - #ide{ data: { url: repo_url }, style: "height:400px;" } - - - if tree.readme - = render "projects/tree/readme", readme: tree.readme + #sidebar.isworking{ ":class" => "{'sidebar-mini' : !isTree}" }< + %table.table + %thead{"v-if" => "isTree"} + %th + Name + %th{"v-if" => "isTree"} + Last Commit + %th{"v-if" => "isTree"} + Last Update + %tr{ is: "repo-previous-directory" } + %tr{ is: "repo-file", "v-for" => "file in files", ":key" => "file.id", ":file" => "file","@linkclicked" => "linkClicked(file)", ":is-tree" => "isTree" } + #ide{ data: { url: repo_url }, style: "height:400px;" }> - if can_edit_tree? = render 'projects/blob/upload', title: _('Upload New File'), placeholder: _('Upload New File'), button_title: _('Upload file'), form_path: namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post |