gitlab-org--gitlab-foss/app/views/projects/blob/_blob.html.haml

29 lines
1 KiB
Text
Raw Normal View History

.nav-block
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'blob', path: @path
%ul.breadcrumb.repo-breadcrumb
%li
= 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
= link_to title, '#'
%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)
2016-10-26 15:44:53 -04:00
= render blob_commit, project: @project, ref: @ref
2016-12-23 04:37:12 -05:00
#blob-content-holder.blob-content-holder
%article.file-holder
2017-03-14 13:58:52 -04:00
= render "projects/blob/header", blob: blob
= render blob.to_partial_path(@project), blob: blob