diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-17 19:18:57 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-17 19:18:57 +0200 |
commit | afb33acae6ed37e630b33b7ae18d516eb8c5fdfb (patch) | |
tree | 92371024936849ab9d56bc1e708c736234d36e72 /app/views/projects/blob/_blob.html.haml | |
parent | 33fd13c8f4909cbe52a8ec38701740f11f2fccbd (diff) | |
download | gitlab-ce-afb33acae6ed37e630b33b7ae18d516eb8c5fdfb.tar.gz |
Put grey block around blob ref switcher and breadcrumb.
Diffstat (limited to 'app/views/projects/blob/_blob.html.haml')
-rw-r--r-- | app/views/projects/blob/_blob.html.haml | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/app/views/projects/blob/_blob.html.haml b/app/views/projects/blob/_blob.html.haml index a1ae1397584..42f632b38ef 100644 --- a/app/views/projects/blob/_blob.html.haml +++ b/app/views/projects/blob/_blob.html.haml @@ -1,19 +1,22 @@ -%ul.breadcrumb.repo-breadcrumb - %li - %i.fa.fa-angle-right - = link_to namespace_project_tree_path(@project.namespace, @project, @ref) do - = @project.path - - tree_breadcrumbs(@tree, 6) do |title, path| +.gray-content-block.top-block + .tree-ref-holder + = render 'shared/ref_switcher', destination: 'blob', path: @path + + %ul.breadcrumb.repo-breadcrumb %li - - if path - - if path.end_with?(@path) - = link_to namespace_project_blob_path(@project.namespace, @project, path) do - %strong - = truncate(title, length: 40) + = 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) - else - = link_to truncate(title, length: 40), namespace_project_tree_path(@project.namespace, @project, path) - - else - = link_to title, '#' + = link_to title, '#' %ul.blob-commit-info.hidden-xs - blob_commit = @repository.last_commit_for_path(@commit.id, blob.path) |