2012-03-01 12:28:38 +00:00
|
|
|
.admin-preferences
|
|
|
|
- act = action_name.to_sym
|
|
|
|
- contr = controller_name.to_sym
|
|
|
|
|
|
|
|
%aside
|
|
|
|
.admin-preferences
|
|
|
|
%ul
|
2012-03-23 19:13:52 +00:00
|
|
|
- if can? :edit, @group
|
2012-05-02 10:18:07 +01:00
|
|
|
%li{:class => (act == :edit && contr == :profile) ? 'active' : ''}
|
2012-03-01 12:28:38 +00:00
|
|
|
= link_to t("layout.groups.edit"), edit_group_path(@group)
|
|
|
|
- if can? :manage_members, @group
|
2012-05-02 10:18:07 +01:00
|
|
|
%li{:class => (act == :index && contr == :members) ? 'active' : ''}
|
|
|
|
= link_to t("layout.groups.edit_members"), group_members_path(@group)
|