gitlab-org--gitlab-foss/app/views/tree/_tree.html.haml

49 lines
1.2 KiB
Plaintext
Raw Normal View History

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