Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-13 11:14:29 +0300
committerDouwe Maan <douwe@gitlab.com>2015-05-13 11:14:29 +0300
commit5cce7f97bd1dc410f912cd0e0896ffd08f2d558d (patch)
tree1c5978f3db4e72aacc2688f0512fad81fab465de
parent1dd0caf4d95c6d09fe54041fd7aff9f8661bfbef (diff)
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|