diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-10-01 10:43:46 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-10-01 11:59:48 +0200 |
commit | 18324261097de835628570696594f749e48d3747 (patch) | |
tree | cd2c3bd63c6d028ccc7232018cc4abcae869bf90 /app | |
parent | 272e1482d6f96a9c139ddc6e3ab3e2d634184d4c (diff) | |
download | gitlab-ce-18324261097de835628570696594f749e48d3747.tar.gz |
Link to the tag from a version instead of commit
This will result in a 404 when running an unreleased security patch
while still allowing users to find the commit when it is made available.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/help/index.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml index 7a66bac09cb..198c2d35b29 100644 --- a/app/views/help/index.html.haml +++ b/app/views/help/index.html.haml @@ -7,8 +7,7 @@ GitLab Community Edition - if user_signed_in? - %span= Gitlab::VERSION - %small= link_to Gitlab.revision, Gitlab::COM_URL + namespace_project_commits_path('gitlab-org', 'gitlab-ce', Gitlab.revision) + %span= link_to Gitlab::VERSION, Gitlab::COM_URL + namespace_project_tag_path('gitlab-org', 'gitlab-ce', "v#{Gitlab::VERSION}") = version_status_badge %hr |