2012-01-27 00:13:19 +02:00
|
|
|
%ul.breadcrumb
|
2012-01-29 21:30:03 +02:00
|
|
|
%li
|
2012-02-28 00:00:19 +02:00
|
|
|
%span.arrow
|
2012-10-03 19:12:51 -04:00
|
|
|
= link_to project_tree_path(@project, @ref) do
|
2012-02-28 00:00:19 +02:00
|
|
|
= @project.name
|
2013-01-03 21:09:18 +02:00
|
|
|
- tree.breadcrumbs(6) do |title, path|
|
2012-01-27 00:13:19 +02:00
|
|
|
\/
|
2013-01-03 21:09:18 +02:00
|
|
|
%li
|
|
|
|
- if path
|
|
|
|
= link_to truncate(title, length: 40), project_tree_path(@project, path)
|
|
|
|
- else
|
|
|
|
= link_to title, '#'
|
2012-10-03 18:28:50 -04:00
|
|
|
|
2011-11-01 22:11:24 +02:00
|
|
|
.clear
|
2012-01-29 21:30:03 +02:00
|
|
|
%div.tree_progress
|
2012-10-03 18:28:50 -04:00
|
|
|
|
2012-10-02 10:26:24 +03:00
|
|
|
%div#tree-content-holder.tree-content-holder
|
2011-11-20 22:32:12 +02:00
|
|
|
- if tree.is_blob?
|
2012-10-15 20:51:03 +02:00
|
|
|
= render "tree/blob", blob: tree
|
2011-10-09 00:36:38 +03:00
|
|
|
- else
|
2012-10-02 10:26:24 +03:00
|
|
|
%table#tree-slider{class: "table_#{@hex_path} tree-table" }
|
2011-11-01 22:11:24 +02:00
|
|
|
%thead
|
2012-12-11 02:39:05 +01:00
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Last Update
|
|
|
|
%th Last Commit
|
|
|
|
%th= link_to "history", project_commits_path(@project, @id), class: "btn very_small right"
|
2011-12-13 00:42:07 +08:00
|
|
|
|
2011-11-20 22:32:12 +02:00
|
|
|
- if tree.up_dir?
|
2012-10-03 18:40:56 -04:00
|
|
|
%tr.tree-item
|
2011-10-09 00:36:38 +03:00
|
|
|
%td.tree-item-file-name
|
2012-10-03 18:40:56 -04:00
|
|
|
= image_tag "file_empty.png", size: '16x16'
|
2013-01-03 21:09:18 +02:00
|
|
|
= link_to "..", project_tree_path(@project, tree.up_dir_path)
|
2011-10-23 12:47:57 +05:30
|
|
|
%td
|
|
|
|
%td
|
2012-10-16 00:57:15 +02:00
|
|
|
%td
|
2011-10-09 00:36:38 +03:00
|
|
|
|
2012-10-03 18:40:56 -04:00
|
|
|
= render_tree(tree.contents)
|
2011-10-09 00:36:38 +03:00
|
|
|
|
2012-10-16 09:48:55 +03:00
|
|
|
- if tree.readme
|
|
|
|
= render "tree/readme", readme: tree.readme
|
2011-12-13 00:42:07 +08:00
|
|
|
|
2012-09-11 05:35:16 -07:00
|
|
|
- unless tree.is_blob?
|
|
|
|
:javascript
|
|
|
|
// Load last commit log for each file in tree
|
|
|
|
$(window).load(function(){
|
|
|
|
ajaxGet('#{@logs_path}');
|
|
|
|
});
|