From 7188b4d83989dcfcc672f88e19d1ddb550b4917a Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 8 Jun 2017 15:43:06 +0200 Subject: 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. --- lib/gitlab.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/gitlab.rb') 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? -- cgit v1.2.1