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

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-01-26 22:13:19 +00:00
%ul.breadcrumb
2012-01-29 19:30:03 +00:00
%li
2013-03-14 17:50:57 +00:00
%i.icon-angle-right
= link_to project_tree_path(@project, @ref) do
2013-03-14 17:50:57 +00:00
= @project.path
- tree_breadcrumbs(tree, 6) do |title, path|
2012-01-26 22:13:19 +00:00
\/
2013-01-03 19:09:18 +00:00
%li
- if path
= link_to truncate(title, length: 40), project_tree_path(@project, path)
- else
= link_to title, '#'
2012-10-02 07:26:24 +00:00
%div#tree-content-holder.tree-content-holder
%table#tree-slider{class: "table_#{@hex_path} tree-table" }
%thead
%tr
%th Name
%th Last Update
%th Last Commit
%th= link_to "history", project_commits_path(@project, @id), class: "btn btn-tiny pull-right"
2011-12-12 16:42:07 +00:00
- if tree.up_dir?
%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 21:36:38 +00:00
= render_tree(tree)
2011-10-08 21:36:38 +00:00
- if tree.readme
= render "tree/readme", readme: tree.readme
2011-12-12 16:42:07 +00:00
%div.tree_progress
:javascript
// Load last commit log for each file in tree
$(window).load(function(){
ajaxGet('#{@logs_path}');
});