2013-04-03 02:26:38 -04:00
|
|
|
%ul.breadcrumb
|
|
|
|
%li
|
|
|
|
%i.icon-angle-right
|
|
|
|
= link_to project_tree_path(@project, @ref) do
|
|
|
|
= @project.path
|
|
|
|
- tree_breadcrumbs(@tree, 6) do |title, path|
|
|
|
|
%li
|
|
|
|
- if path
|
2013-05-08 14:27:43 -04:00
|
|
|
- if path.end_with?(@path)
|
|
|
|
= link_to project_blob_path(@project, path) do
|
|
|
|
%span.cblue
|
|
|
|
= truncate(title, length: 40)
|
|
|
|
- else
|
|
|
|
= link_to truncate(title, length: 40), project_tree_path(@project, path)
|
2013-04-03 02:26:38 -04:00
|
|
|
- else
|
|
|
|
= link_to title, '#'
|
|
|
|
|
|
|
|
%div#tree-content-holder.tree-content-holder
|
2013-07-13 02:52:47 -04:00
|
|
|
.file-holder
|
|
|
|
.file-title
|
2013-04-03 02:26:38 -04:00
|
|
|
%i.icon-file
|
|
|
|
%span.file_name
|
|
|
|
= blob.name
|
|
|
|
%small= number_to_human_size blob.size
|
|
|
|
%span.options= render "actions"
|
|
|
|
- if blob.text?
|
|
|
|
= render "text", blob: blob
|
|
|
|
- elsif blob.image?
|
|
|
|
= render "image", blob: blob
|
|
|
|
- else
|
|
|
|
= render "download", blob: blob
|