2012-03-01 12:28:38 +00:00
|
|
|
.admin-preferences
|
|
|
|
- act = action_name.to_sym
|
|
|
|
- contr = controller_name.to_sym
|
|
|
|
|
|
|
|
%aside
|
|
|
|
.admin-preferences
|
|
|
|
%ul
|
|
|
|
- if can? :edit, @project
|
|
|
|
%li{:class => (act == :edit && contr == :groups) ? 'active' : ''}
|
|
|
|
= link_to t("layout.groups.edit"), edit_group_path(@group)
|
|
|
|
- if can? :manage_members, @group
|
2012-03-01 14:23:26 +00:00
|
|
|
%li{:class => (act == :edit && contr == :members) ? 'active' : ''}
|
2012-03-01 12:28:38 +00:00
|
|
|
= link_to t("layout.groups.edit_members"), edit_group_members_path(@group)
|