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

25 lines
956 B
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
.tree-content-holder.js-tree-content{ 'data-logs-path': @logs_path }
2019-02-13 22:33:31 +05:30
.table-holder.bordered-box
2018-12-05 23:21:45 +05:30
%table.table#tree-slider{ class: "table_#{@hex_path} tree-table qa-file-tree" }
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'