rosa-build/app/views/groups/base/_sidebar.html.haml

14 lines
480 B
Plaintext
Raw Normal View History

.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
2014-01-21 04:51:49 +00:00
%li{class: (act == :edit && contr == :profile) ? 'active' : ''}
= link_to t("layout.groups.edit"), edit_group_path(@group)
- if can? :manage_members, @group
2014-01-21 04:51:49 +00:00
%li{class: (act == :index && contr == :members) ? 'active' : ''}
= link_to t("layout.groups.edit_members"), group_members_path(@group)