diff options
author | Toon Claes <toon@gitlab.com> | 2017-06-08 16:43:06 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-06-09 11:35:42 +0300 |
commit | 7188b4d83989dcfcc672f88e19d1ddb550b4917a (patch) | |
tree | 2a98da2b57e9d167c1aa137070b7856924f67f8a /lib/gitlab.rb | |
parent | 4a22895492fd7e9111f11b6659c31b509995721c (diff) |
Make the revision on the `/help` page clickable
For quicker access, add hyperlink to the gitlab.com commits page for the current
REVISION of GitLab.
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r-- | lib/gitlab.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb index c3064163e07..11f7c8b9510 100644 --- a/lib/gitlab.rb +++ b/lib/gitlab.rb @@ -1,9 +1,11 @@ require_dependency 'gitlab/git' module Gitlab + COM_URL = 'https://gitlab.com'.freeze + def self.com? # Check `staging?` as well to keep parity with gitlab.com - Gitlab.config.gitlab.url == 'https://gitlab.com' || staging? + Gitlab.config.gitlab.url == COM_URL || staging? end def self.staging? |