diff options
author | Toon Claes <toon@gitlab.com> | 2017-06-08 15:43:06 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-06-09 10:35:42 +0200 |
commit | 7188b4d83989dcfcc672f88e19d1ddb550b4917a (patch) | |
tree | 2a98da2b57e9d167c1aa137070b7856924f67f8a /lib/gitlab.rb | |
parent | 4a22895492fd7e9111f11b6659c31b509995721c (diff) | |
download | gitlab-ce-7188b4d83989dcfcc672f88e19d1ddb550b4917a.tar.gz |
Make the revision on the `/help` page clickabletc-link-to-commit-on-help-page
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? |