summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZsolt Kovari <zsolt.kovari@cern.ch>2019-07-22 12:52:30 +0000
committerFatih Acet <acetfatih@gmail.com>2019-07-22 12:52:30 +0000
commit0f9fb07d5c54391a9eb8a07c8b776f84ff6f951a (patch)
treec598cdf3ef99aaa907367193b80c3bc27c941c80
parent06e44f7d03e5df62e8ab68e78008f2000d3e2b52 (diff)
downloadgitlab-ce-0f9fb07d5c54391a9eb8a07c8b776f84ff6f951a.tar.gz
Display group id on group admin page
-rw-r--r--app/views/admin/groups/show.html.haml5
-rw-r--r--changelogs/unreleased/60948-display-groupid-on-group-admin-page.yml5
-rw-r--r--locale/gitlab.pot3
-rw-r--r--spec/features/admin/admin_groups_spec.rb1
4 files changed, 14 insertions, 0 deletions
diff --git a/app/views/admin/groups/show.html.haml b/app/views/admin/groups/show.html.haml
index 98230684d56..f9cc118a252 100644
--- a/app/views/admin/groups/show.html.haml
+++ b/app/views/admin/groups/show.html.haml
@@ -40,6 +40,11 @@
%strong
= @group.created_at.to_s(:medium)
+ %li
+ %span.light= _('ID:')
+ %strong
+ = @group.id
+
= render_if_exists 'admin/namespace_plan_info', namespace: @group
%li
diff --git a/changelogs/unreleased/60948-display-groupid-on-group-admin-page.yml b/changelogs/unreleased/60948-display-groupid-on-group-admin-page.yml
new file mode 100644
index 00000000000..17763b4c69e
--- /dev/null
+++ b/changelogs/unreleased/60948-display-groupid-on-group-admin-page.yml
@@ -0,0 +1,5 @@
+---
+title: Display group id on group admin page
+merge_request: 29735
+author: Zsolt Kovari
+type: added
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 7b742660a4c..5f8467ea809 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -5324,6 +5324,9 @@ msgstr ""
msgid "ID"
msgstr ""
+msgid "ID:"
+msgstr ""
+
msgid "IDE|Allow live previews of JavaScript projects in the Web IDE using CodeSandbox client side evaluation."
msgstr ""
diff --git a/spec/features/admin/admin_groups_spec.rb b/spec/features/admin/admin_groups_spec.rb
index 735ca60f7da..bac2972b0fb 100644
--- a/spec/features/admin/admin_groups_spec.rb
+++ b/spec/features/admin/admin_groups_spec.rb
@@ -90,6 +90,7 @@ describe 'Admin Groups' do
visit admin_group_path(group)
expect(page).to have_content("Group: #{group.name}")
+ expect(page).to have_content("ID: #{group.id}")
end
end