diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-18 21:32:23 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-18 21:32:23 -0700 |
commit | f3d50461962b1a9696cad234560d4362264ec411 (patch) | |
tree | 3360a7cc38cf03d212d4b19abfb718501a7d7e34 /app | |
parent | fa7ee3ade8f80059ec857c4af7a9e3071b10ec71 (diff) | |
download | gitlab-ce-f3d50461962b1a9696cad234560d4362264ec411.tar.gz |
Return compare code button to top of sidebar
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/show.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index d5a44b7ed51..cfa6cda0466 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -47,6 +47,9 @@ = link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project) - unless @project.empty_repo? + = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do + Compare code + - if version = @repository.version - detail_url = changelog_url(@project) || version_url(@project) = link_to detail_url, class: 'btn btn-block' do @@ -65,9 +68,6 @@ = link_to license_url(@project), class: 'btn btn-block' do View license - = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do - Compare code - .prepend-top-10 %p %span.light Created on |