debian-mirror-gitlab/app/views/projects/tree/_tree_content.html.haml

25 lines
967 B
Text
Raw Normal View History

2019-09-30 21:07:59 +05:30
.tree-content-holder.js-tree-content{ data: tree_content_data(@logs_path, @project, @path) }
2019-02-15 15:39:39 +05:30
.table-holder.bordered-box
2020-03-09 13:42:32 +05:30
%table.table#tree-slider{ class: "table_#{@hex_path} tree-table" }
2018-03-17 18:26:18 +05:30
%thead
%tr
%th= s_('ProjectFileTree|Name')
2018-11-08 19:23:39 +05:30
%th.d-none.d-sm-table-cell
.float-left= _('Last commit')
2018-03-17 18:26:18 +05:30
%th.text-right= _('Last update')
- if @path.present?
%tr.tree-item
%td.tree-item-file-name
= link_to "..", project_tree_path(@project, up_dir_path), class: 'prepend-left-10'
%td
2018-11-08 19:23:39 +05:30
%td.d-none.d-sm-table-cell
2018-03-17 18:26:18 +05:30
= render_tree(tree)
- if tree.readme
= render "projects/tree/readme", readme: tree.readme
- if can_edit_tree?
= render 'projects/blob/upload', title: _('Upload New File'), placeholder: _('Upload New File'), button_title: _('Upload file'), form_path: project_create_blob_path(@project, @id), method: :post
= render 'projects/blob/new_dir'