Commit 1408bb30 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'bvl-remove-sha-from-help-ee' into 'master'

[EE-port] Link to the tag from a version instead of commit

See merge request gitlab-org/gitlab-ee!7711
parents cf6e9df5 a3f7492e
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
GitLab GitLab
Enterprise Edition Enterprise Edition
- if user_signed_in? - if user_signed_in?
%span= Gitlab::VERSION %span= link_to Gitlab::VERSION, Gitlab::COM_URL + namespace_project_tag_path('gitlab-org', 'gitlab-ee', "v#{Gitlab::VERSION}")
%small= link_to Gitlab.revision, Gitlab::COM_URL + namespace_project_commits_path('gitlab-org', 'gitlab-ee', Gitlab.revision)
= version_status_badge = version_status_badge
%hr %hr
......
...@@ -21,7 +21,7 @@ describe 'help/index' do ...@@ -21,7 +21,7 @@ describe 'help/index' do
render render
expect(rendered).to match '8.0.2' expect(rendered).to match '8.0.2'
expect(rendered).to have_link('abcdefg', href: 'https://gitlab.com/gitlab-org/gitlab-ee/commits/abcdefg') expect(rendered).to have_link('8.0.2', href: 'https://gitlab.com/gitlab-org/gitlab-ee/tags/v8.0.2')
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment