Commit 57537d3f authored by Illya Klymov's avatar Illya Klymov

Add link to group on group admin page

parent 339bc4d8
...@@ -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