2014-06-14 13:01:56 -04:00
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
2013-04-03 02:26:38 -04:00
|
|
|
%li
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-angle-right
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to namespace_project_tree_path(@project.namespace, @project, @ref) do
|
2013-04-03 02:26:38 -04:00
|
|
|
= @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)
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to namespace_project_blob_path(@project.namespace, @project, path) do
|
2014-06-03 07:49:50 -04:00
|
|
|
%strong
|
2013-05-08 14:27:43 -04:00
|
|
|
= truncate(title, length: 40)
|
|
|
|
- else
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to truncate(title, length: 40), namespace_project_tree_path(@project.namespace, @project, path)
|
2013-04-03 02:26:38 -04:00
|
|
|
- else
|
|
|
|
= link_to title, '#'
|
|
|
|
|
2015-09-10 07:25:09 -04:00
|
|
|
%ul.blob-commit-info.hidden-xs
|
2014-09-27 16:05:02 -04:00
|
|
|
- blob_commit = @repository.last_commit_for_path(@commit.id, blob.path)
|
2014-02-10 14:46:46 -05:00
|
|
|
= render blob_commit, project: @project
|
|
|
|
|
2015-10-13 10:41:48 -04:00
|
|
|
%div#blob-content-holder.blob-content-holder
|
2014-06-17 10:13:30 -04:00
|
|
|
%article.file-holder
|
2015-03-13 22:20:25 -04:00
|
|
|
.file-title
|
2014-10-04 06:29:18 -04:00
|
|
|
= blob_icon blob.mode, blob.name
|
2015-03-13 22:20:25 -04:00
|
|
|
%strong
|
2013-04-03 02:26:38 -04:00
|
|
|
= blob.name
|
2015-03-13 22:20:25 -04:00
|
|
|
%small
|
|
|
|
= number_to_human_size(blob.size)
|
|
|
|
.file-actions.hidden-xs
|
|
|
|
= render "actions"
|
2013-04-03 02:26:38 -04:00
|
|
|
- if blob.text?
|
|
|
|
= render "text", blob: blob
|
|
|
|
- elsif blob.image?
|
|
|
|
= render "image", blob: blob
|
|
|
|
- else
|
|
|
|
= render "download", blob: blob
|