2016-12-23 04:37:12 -05:00
|
|
|
.tree-content-holder
|
2015-10-19 05:19:45 -04:00
|
|
|
.table-holder
|
2016-12-26 05:47:16 -05:00
|
|
|
%table.table#tree-slider{ class: "table_#{@hex_path} tree-table" }
|
2015-10-13 10:41:48 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
2016-08-31 12:08:52 -04:00
|
|
|
%th.hidden-xs
|
2016-12-09 17:48:53 -05:00
|
|
|
.pull-left Last commit
|
2016-08-31 12:08:52 -04:00
|
|
|
.last-commit.hidden-sm.pull-left
|
2017-01-24 12:05:39 -05:00
|
|
|
|
|
|
|
%i.fa.fa-angle-right
|
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
%small.light
|
2015-12-02 08:54:58 -05:00
|
|
|
= link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @commit), class: "monospace"
|
2017-01-24 12:05:39 -05:00
|
|
|
= clipboard_button(clipboard_text: @commit.id, title: "Copy commit SHA to clipboard")
|
2016-08-31 12:14:09 -04:00
|
|
|
= time_ago_with_tooltip(@commit.committed_date)
|
2017-01-24 12:05:39 -05:00
|
|
|
:plain
|
|
|
|
-
|
2016-08-31 12:14:09 -04:00
|
|
|
= @commit.full_title
|
|
|
|
%small.commit-history-link-spacer |
|
|
|
|
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id), class: 'commit-history-link'
|
|
|
|
%th.text-right Last Update
|
2015-10-13 10:41:48 -04:00
|
|
|
- if @path.present?
|
|
|
|
%tr.tree-item
|
|
|
|
%td.tree-item-file-name
|
|
|
|
= link_to "..", namespace_project_tree_path(@project.namespace, @project, up_dir_path), class: 'prepend-left-10'
|
|
|
|
%td
|
|
|
|
%td.hidden-xs
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2015-10-13 10:41:48 -04:00
|
|
|
= render_tree(tree)
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2013-04-03 08:55:08 -04:00
|
|
|
- if tree.readme
|
2013-06-23 12:47:22 -04:00
|
|
|
= render "projects/tree/readme", readme: tree.readme
|
2011-12-12 11:42:07 -05:00
|
|
|
|
2015-12-18 04:03:34 -05:00
|
|
|
- if can_edit_tree?
|
2015-11-17 12:53:56 -05:00
|
|
|
= 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
|
2015-09-17 01:45:22 -04:00
|
|
|
= render 'projects/blob/new_dir'
|
|
|
|
|
2013-04-03 02:26:38 -04:00
|
|
|
:javascript
|
|
|
|
// Load last commit log for each file in tree
|
2013-04-29 06:18:08 -04:00
|
|
|
$('#tree-slider').waitForImages(function() {
|
2016-09-05 23:28:59 -04:00
|
|
|
gl.utils.ajaxGet("#{escape_javascript(@logs_path)}");
|
2013-04-03 02:26:38 -04:00
|
|
|
});
|