BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7188b4d8
Commit
7188b4d8
authored
Jun 08, 2017
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain 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.
parent
4a228954
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
index.html.haml
app/views/help/index.html.haml
+1
-1
tc-link-to-commit-on-help-page.yml
changelogs/unreleased/tc-link-to-commit-on-help-page.yml
+4
-0
gitlab.rb
lib/gitlab.rb
+3
-1
index.html.haml_spec.rb
spec/views/help/index.html.haml_spec.rb
+1
-1
No files found.
app/views/help/index.html.haml
View file @
7188b4d8
...
...
@@ -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
%p
.slead
GitLab is open source software to collaborate on code.
...
...
changelogs/unreleased/tc-link-to-commit-on-help-page.yml
0 → 100644
View file @
7188b4d8
---
title
:
Make the revision on the `/help` page clickable
merge_request
:
12016
author
:
lib/gitlab.rb
View file @
7188b4d8
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?
...
...
spec/views/help/index.html.haml_spec.rb
View file @
7188b4d8
...
...
@@ -21,7 +21,7 @@ describe 'help/index' do
render
expect
(
rendered
).
to
match
'8.0.2'
expect
(
rendered
).
to
match
'abcdefg'
expect
(
rendered
).
to
have_link
(
'abcdefg'
,
'https://gitlab.com/gitlab-org/gitlab-ce/commits/abcdefg'
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment