summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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|