Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4e2781fe
Commit
4e2781fe
authored
Mar 07, 2019
by
Peter Marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose group id on home panel
parent
3d37d29a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
app/views/groups/_home_panel.html.haml
app/views/groups/_home_panel.html.haml
+1
-1
changelogs/unreleased/expose-group-id-on-home-panel.yml
changelogs/unreleased/expose-group-id-on-home-panel.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/views/groups/_home_panel.html.haml_spec.rb
spec/views/groups/_home_panel.html.haml_spec.rb
+15
-0
No files found.
app/views/groups/_home_panel.html.haml
View file @
4e2781fe
...
...
@@ -13,7 +13,7 @@
=
visibility_level_icon
(
@group
.
visibility_level
,
fw:
false
,
options:
{
class:
'icon'
})
.home-panel-metadata.d-flex.align-items-center.text-secondary
%span
=
_
(
"Group
"
)
=
_
(
"Group
ID: %{group_id}"
)
%
{
group_id:
@group
.
id
}
-
if
current_user
%span
.access-request-links.prepend-left-8
=
render
'shared/members/access_request_links'
,
source:
@group
...
...
changelogs/unreleased/expose-group-id-on-home-panel.yml
0 → 100644
View file @
4e2781fe
---
title
:
Expose group id on home panel
merge_request
:
25897
author
:
Peter Marko
type
:
added
locale/gitlab.pot
View file @
4e2781fe
...
...
@@ -3789,6 +3789,9 @@ msgstr ""
msgid "Group ID"
msgstr ""
msgid "Group ID: %{group_id}"
msgstr ""
msgid "Group Runners"
msgstr ""
...
...
spec/views/groups/_home_panel.html.haml_spec.rb
0 → 100644
View file @
4e2781fe
require
'spec_helper'
describe
'groups/_home_panel'
do
let
(
:group
)
{
create
(
:group
)
}
before
do
assign
(
:group
,
group
)
end
it
'renders the group ID'
do
render
expect
(
rendered
).
to
have_content
(
"Group ID:
#{
group
.
id
}
"
)
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