Ability to manage and remove group as owner outside of admin area

This commit is contained in:
Dmitriy Zaporozhets 2013-02-01 19:04:11 +02:00
parent 591e094e06
commit e6002bdaff
9 changed files with 117 additions and 8 deletions

View file

@ -22,4 +22,10 @@
= nav_link(path: 'groups#people') do
= link_to "People", people_group_path(@group)
- if can?(current_user, :manage_group, @group)
= nav_link(path: 'groups#edit') do
= link_to edit_group_path(@group), class: "tab " do
%i.icon-edit
Edit Group
.content= yield