2016-01-19 16:12:03 +05:30
|
|
|
.nav-block
|
2015-11-26 14:37:03 +05:30
|
|
|
.tree-ref-holder
|
|
|
|
= render 'shared/ref_switcher', destination: 'blob', path: @path
|
|
|
|
|
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
2014-09-02 18:07:02 +05:30
|
|
|
%li
|
2015-11-26 14:37:03 +05:30
|
|
|
= link_to namespace_project_tree_path(@project.namespace, @project, @ref) do
|
|
|
|
= @project.path
|
2017-08-17 22:00:37 +05:30
|
|
|
- path_breadcrumbs do |title, path|
|
|
|
|
- title = truncate(title, length: 40)
|
2015-11-26 14:37:03 +05:30
|
|
|
%li
|
2017-08-17 22:00:37 +05:30
|
|
|
- if path == @path
|
|
|
|
= link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@ref, path)) do
|
|
|
|
%strong= title
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
2017-08-17 22:00:37 +05:30
|
|
|
= link_to title, namespace_project_tree_path(@project.namespace, @project, tree_join(@ref, path))
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
%ul.blob-commit-info.hidden-xs
|
2015-04-26 12:48:37 +05:30
|
|
|
- blob_commit = @repository.last_commit_for_path(@commit.id, blob.path)
|
2016-11-24 13:41:30 +05:30
|
|
|
= render blob_commit, project: @project, ref: @ref
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
#blob-content-holder.blob-content-holder
|
2014-09-02 18:07:02 +05:30
|
|
|
%article.file-holder
|
2017-08-17 22:00:37 +05:30
|
|
|
= render "projects/blob/header", blob: blob
|
|
|
|
= render 'projects/blob/content', blob: blob
|