summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-18 21:32:23 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-18 21:32:23 -0700
commitf3d50461962b1a9696cad234560d4362264ec411 (patch)
tree3360a7cc38cf03d212d4b19abfb718501a7d7e34 /app
parentfa7ee3ade8f80059ec857c4af7a9e3071b10ec71 (diff)
downloadgitlab-ce-f3d50461962b1a9696cad234560d4362264ec411.tar.gz
Return compare code button to top of sidebar
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/show.html.haml6
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