summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-13 10:14:29 +0200
committerDouwe Maan <douwe@gitlab.com>2015-05-13 10:14:29 +0200
commit5cce7f97bd1dc410f912cd0e0896ffd08f2d558d (patch)
tree1c5978f3db4e72aacc2688f0512fad81fab465de
parent1dd0caf4d95c6d09fe54041fd7aff9f8661bfbef (diff)
downloadgitlab-ce-sidebar-version-changelog.tar.gz
Link project side bar version number to changelog.sidebar-version-changelog
-rw-r--r--app/views/projects/_aside.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/_aside.html.haml b/app/views/projects/_aside.html.haml
index c2f56996ba8..360e2bb6bf5 100644
--- a/app/views/projects/_aside.html.haml
+++ b/app/views/projects/_aside.html.haml
@@ -48,7 +48,8 @@
= icon("clock-o fw")
Version
.pull-right
- = link_to version_url(@project) do
+ - url = @repository.changelog ? changelog_url(@project) : version_url(@project)
+ = link_to url do
= @repository.blob_by_oid(version.id).data
- @project.ci_services.each do |ci_service|