Commit 3d963515 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'tc-link-to-commit-on-help-page' into 'master'

Make the revision on the `/help` page clickable

See merge request !12016
parents 07fdabbc 7188b4d8
Pipeline #8900338 failed with stages
in 141 minutes and 46 seconds
......@@ -4,7 +4,7 @@
Community Edition
- if user_signed_in?
%span= Gitlab::VERSION
%small= Gitlab::REVISION
%small= link_to Gitlab::REVISION, Gitlab::COM_URL + namespace_project_commits_path('gitlab-org', 'gitlab-ce', Gitlab::REVISION)
= version_status_badge
GitLab is open source software to collaborate on code.
title: Make the revision on the `/help` page clickable
merge_request: 12016
require_dependency 'gitlab/git'
module Gitlab
COM_URL = ''.freeze
# Check `staging?` as well to keep parity with
Gitlab.config.gitlab.url == '' || staging?
Gitlab.config.gitlab.url == COM_URL || staging?
def self.staging?
......@@ -21,7 +21,7 @@ describe 'help/index' do
expect(rendered).to match '8.0.2'
expect(rendered).to match 'abcdefg'
expect(rendered).to have_link('abcdefg', '')
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