2014-06-14 16:02:16 +00:00
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
2012-01-29 19:30:03 +00:00
|
|
|
%li
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to namespace_project_tree_path(@project.namespace, @project, @ref) do
|
2013-03-14 17:50:57 +00:00
|
|
|
= @project.path
|
2013-03-31 20:47:26 +00:00
|
|
|
- tree_breadcrumbs(tree, 6) do |title, path|
|
2013-01-03 19:09:18 +00:00
|
|
|
%li
|
|
|
|
- if path
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to truncate(title, length: 40), namespace_project_tree_path(@project.namespace, @project, path)
|
2013-01-03 19:09:18 +00:00
|
|
|
- else
|
|
|
|
= link_to title, '#'
|
2014-06-02 13:18:16 +00:00
|
|
|
- if current_user && can_push_branch?(@project, @ref)
|
2013-11-05 10:23:11 +00:00
|
|
|
%li
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to namespace_project_new_blob_path(@project.namespace, @project, @id), title: 'New file', id: 'new-file-link' do
|
2013-11-05 10:23:11 +00:00
|
|
|
%small
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-plus
|
2012-10-03 22:28:50 +00:00
|
|
|
|
2015-09-07 09:44:00 +00:00
|
|
|
%div#tree-content-holder.tree-content-holder.prepend-top-20
|
2013-04-03 12:55:08 +00:00
|
|
|
%table#tree-slider{class: "table_#{@hex_path} tree-table" }
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Last Update
|
2014-06-14 16:09:36 +00:00
|
|
|
%th.hidden-xs
|
|
|
|
.pull-left Last Commit
|
|
|
|
.last-commit.hidden-sm.pull-left
|
2014-01-04 17:27:09 +00:00
|
|
|
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-angle-right
|
2014-01-04 17:27:09 +00:00
|
|
|
|
|
|
|
%small.light
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @commit)
|
2014-01-04 17:27:09 +00:00
|
|
|
–
|
|
|
|
= truncate(@commit.title, length: 50)
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id), class: 'pull-right'
|
2011-12-12 16:42:07 +00:00
|
|
|
|
2013-10-01 14:00:28 +00:00
|
|
|
- if @path.present?
|
2013-04-03 12:55:08 +00:00
|
|
|
%tr.tree-item
|
|
|
|
%td.tree-item-file-name
|
2015-01-24 18:02:58 +00:00
|
|
|
= link_to "..", namespace_project_tree_path(@project.namespace, @project, up_dir_path), class: 'prepend-left-10'
|
2013-04-03 12:55:08 +00:00
|
|
|
%td
|
2014-06-06 19:21:07 +00:00
|
|
|
%td.hidden-xs
|
2011-10-08 21:36:38 +00:00
|
|
|
|
2013-04-03 12:55:08 +00:00
|
|
|
= render_tree(tree)
|
2011-10-08 21:36:38 +00:00
|
|
|
|
2013-04-03 12:55:08 +00:00
|
|
|
- if tree.readme
|
2013-06-23 16:47:22 +00:00
|
|
|
= render "projects/tree/readme", readme: tree.readme
|
2011-12-12 16:42:07 +00:00
|
|
|
|
2013-03-06 15:12:28 +00:00
|
|
|
%div.tree_progress
|
|
|
|
|
2013-04-03 06:26:38 +00:00
|
|
|
:javascript
|
|
|
|
// Load last commit log for each file in tree
|
2013-04-29 10:18:08 +00:00
|
|
|
$('#tree-slider').waitForImages(function() {
|
2015-07-26 09:17:34 +00:00
|
|
|
ajaxGet("#{escape_javascript(@logs_path)}");
|
2013-04-03 06:26:38 +00:00
|
|
|
});
|