Commit 4e2781fe authored by Peter Marko's avatar Peter Marko

expose group id on home panel

parent 3d37d29a
...@@ -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
......
---
title: Expose group id on home panel
merge_request: 25897
author: Peter Marko
type: added
...@@ -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 ""
......
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment