Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
1573a937193f
Commit
bc77acf8
authored
Mar 07, 2019
by
Peter Marko
Browse files
expose group id on home panel
parent
41f99c81030c
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/views/groups/_home_panel.html.haml
View file @
1573a937
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
=
visibility_level_icon
(
@group
.
visibility_level
,
fw:
false
,
options:
{
class:
'icon'
})
=
visibility_level_icon
(
@group
.
visibility_level
,
fw:
false
,
options:
{
class:
'icon'
})
.home-panel-metadata.d-flex.align-items-center.text-secondary
.home-panel-metadata.d-flex.align-items-center.text-secondary
%span
%span
=
_
(
"Group
"
)
=
_
(
"Group
ID: %{group_id}"
)
%
{
group_id:
@group
.
id
}
-
if
current_user
-
if
current_user
%span
.access-request-links.prepend-left-8
%span
.access-request-links.prepend-left-8
=
render
'shared/members/access_request_links'
,
source:
@group
=
render
'shared/members/access_request_links'
,
source:
@group
...
...
changelogs/unreleased/expose-group-id-on-home-panel.yml
0 → 100644
View file @
1573a937
---
title
:
Expose group id on home panel
merge_request
:
25897
author
:
Peter Marko
type
:
added
locale/gitlab.pot
View file @
1573a937
...
@@ -3789,6 +3789,9 @@ msgstr ""
...
@@ -3789,6 +3789,9 @@ msgstr ""
msgid "Group ID"
msgid "Group ID"
msgstr ""
msgstr ""
msgid "Group ID: %{group_id}"
msgstr ""
msgid "Group Runners"
msgid "Group Runners"
msgstr ""
msgstr ""
...
...
spec/views/groups/_home_panel.html.haml_spec.rb
0 → 100644
View file @
1573a937
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