2012-01-26 17:13:19 -05:00
|
|
|
%ul.breadcrumb
|
2012-01-29 14:30:03 -05:00
|
|
|
%li
|
2013-03-14 13:50:57 -04:00
|
|
|
%i.icon-angle-right
|
2012-10-03 19:12:51 -04:00
|
|
|
= link_to project_tree_path(@project, @ref) do
|
2013-03-14 13:50:57 -04:00
|
|
|
= @project.path
|
2013-03-31 16:47:26 -04:00
|
|
|
- tree_breadcrumbs(tree, 6) do |title, path|
|
2013-01-03 14:09:18 -05:00
|
|
|
%li
|
|
|
|
- if path
|
|
|
|
= link_to truncate(title, length: 40), project_tree_path(@project, path)
|
|
|
|
- else
|
|
|
|
= link_to title, '#'
|
2014-01-24 14:29:52 -05:00
|
|
|
- if current_user && @repository.branch_names.include?(@ref) && current_user.can?(:push_code, @project)
|
2013-11-05 05:23:11 -05:00
|
|
|
%li
|
|
|
|
= link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do
|
|
|
|
%small
|
|
|
|
%i.icon-plus.light
|
2012-10-03 18:28:50 -04:00
|
|
|
|
2012-10-02 03:26:24 -04:00
|
|
|
%div#tree-content-holder.tree-content-holder
|
2013-04-03 08:55:08 -04:00
|
|
|
%table#tree-slider{class: "table_#{@hex_path} tree-table" }
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Last Update
|
2014-01-04 12:27:09 -05:00
|
|
|
%th.hidden-sm
|
2013-04-19 02:33:56 -04:00
|
|
|
Last Commit
|
2014-01-04 12:27:09 -05:00
|
|
|
%span.last-commit
|
|
|
|
|
|
|
|
%i.icon-angle-right
|
|
|
|
|
|
|
|
%small.light
|
|
|
|
= link_to @commit.short_id, project_commit_path(@project, @commit)
|
|
|
|
–
|
|
|
|
= truncate(@commit.title, length: 50)
|
2013-09-24 05:08:28 -04:00
|
|
|
%th= link_to "history", project_commits_path(@project, @id), class: "pull-right"
|
2011-12-12 11:42:07 -05:00
|
|
|
|
2013-10-01 10:00:28 -04:00
|
|
|
- if @path.present?
|
2013-04-03 08:55:08 -04:00
|
|
|
%tr.tree-item
|
|
|
|
%td.tree-item-file-name
|
|
|
|
= image_tag "file_empty.png", size: '16x16'
|
|
|
|
= link_to "..", project_tree_path(@project, up_dir_path(tree))
|
|
|
|
%td
|
|
|
|
%td
|
|
|
|
%td
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2013-04-03 08:55:08 -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
|
|
|
|
2013-03-06 10:12:28 -05:00
|
|
|
%div.tree_progress
|
|
|
|
|
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() {
|
2013-04-03 02:26:38 -04:00
|
|
|
ajaxGet('#{@logs_path}');
|
|
|
|
});
|