Commit 5f6e78fb authored by Clement Ho's avatar Clement Ho

Merge branch 'xanf-add-group-link' into 'master'

Resolve "Link Group name on group's Admin page"

See merge request gitlab-org/gitlab!21709
parents 8558730b 57537d3f
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
= group_icon(@group, class: "avatar s60") = group_icon(@group, class: "avatar s60")
%li %li
%span.light= _('Name:') %span.light= _('Name:')
%strong= @group.name %strong
= link_to @group.name, group_path(@group)
%li %li
%span.light= _('Path:') %span.light= _('Path:')
%strong %strong
......
---
title: link to group on group admin page
merge_request: 21709
author:
type: added
...@@ -94,6 +94,14 @@ describe 'Admin Groups' do ...@@ -94,6 +94,14 @@ describe 'Admin Groups' do
expect(page).to have_content("Group: #{group.name}") expect(page).to have_content("Group: #{group.name}")
expect(page).to have_content("ID: #{group.id}") expect(page).to have_content("ID: #{group.id}")
end end
it 'has a link to the group' do
group = create(:group, :private)
visit admin_group_path(group)
expect(page).to have_link(group.name, href: group_path(group))
end
end end
describe 'group edit' do describe 'group edit' do
......
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