14 lines
487 B
Plaintext
14 lines
487 B
Plaintext
.admin-preferences
|
|
- act = action_name.to_sym
|
|
- contr = controller_name.to_sym
|
|
|
|
%aside
|
|
.admin-preferences
|
|
%ul
|
|
- if can? :edit, @group
|
|
%li{:class => (act == :edit && contr == :profile) ? 'active' : ''}
|
|
= link_to t("layout.groups.edit"), edit_group_path(@group)
|
|
- if can? :manage_members, @group
|
|
%li{:class => (act == :index && contr == :members) ? 'active' : ''}
|
|
= link_to t("layout.groups.edit_members"), group_members_path(@group)
|