debian-mirror-gitlab/app/views/projects/blob/_blob.html.haml

36 lines
1.1 KiB
Text
Raw Normal View History

.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
- 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)
2014-09-02 18:07:02 +05:30
- else
2015-11-26 14:37:03 +05:30
= link_to title, '#'
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
2015-10-24 18:46:33 +05:30
%div#blob-content-holder.blob-content-holder
2014-09-02 18:07:02 +05:30
%article.file-holder
2015-04-26 12:48:37 +05:30
.file-title
= blob_icon blob.mode, blob.name
%strong
2014-09-02 18:07:02 +05:30
= blob.name
2015-04-26 12:48:37 +05:30
%small
2015-12-23 02:04:40 +05:30
= number_to_human_size(blob_size(blob))
2015-04-26 12:48:37 +05:30
.file-actions.hidden-xs
= render "actions"
2016-06-02 11:05:42 +05:30
= render blob, blob: blob