2016-01-14 06:31:31 -05:00
|
|
|
.nav-block
|
2015-10-17 13:18:57 -04:00
|
|
|
.tree-ref-holder
|
|
|
|
= render 'shared/ref_switcher', destination: 'blob', path: @path
|
|
|
|
|
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
2013-04-03 02:26:38 -04:00
|
|
|
%li
|
2015-10-17 13:18:57 -04:00
|
|
|
= link_to namespace_project_tree_path(@project.namespace, @project, @ref) do
|
|
|
|
= @project.path
|
|
|
|
- tree_breadcrumbs(@tree, 6) do |title, path|
|
|
|
|
%li
|
|
|
|
- if path
|
|
|
|
- if path.end_with?(@path)
|
|
|
|
= link_to namespace_project_blob_path(@project.namespace, @project, path) do
|
|
|
|
%strong
|
|
|
|
= truncate(title, length: 40)
|
|
|
|
- else
|
|
|
|
= link_to truncate(title, length: 40), namespace_project_tree_path(@project.namespace, @project, path)
|
2013-05-08 14:27:43 -04:00
|
|
|
- else
|
2015-10-17 13:18:57 -04:00
|
|
|
= link_to title, '#'
|
2013-04-03 02:26:38 -04:00
|
|
|
|
2016-12-09 11:18:19 -05:00
|
|
|
%ul.blob-commit-info.table-list.hidden-xs
|
2014-09-27 16:05:02 -04:00
|
|
|
- blob_commit = @repository.last_commit_for_path(@commit.id, blob.path)
|
2016-10-26 15:44:53 -04:00
|
|
|
= render blob_commit, project: @project, ref: @ref
|
2014-02-10 14:46:46 -05:00
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
#blob-content-holder.blob-content-holder
|
2014-06-17 10:13:30 -04:00
|
|
|
%article.file-holder
|
2017-02-05 17:28:48 -05:00
|
|
|
.js-file-title.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
|
2015-12-07 09:03:50 -05:00
|
|
|
= number_to_human_size(blob_size(blob))
|
2015-03-13 22:20:25 -04:00
|
|
|
.file-actions.hidden-xs
|
|
|
|
= render "actions"
|
2016-02-18 18:19:43 -05:00
|
|
|
= render blob, blob: blob
|