rosa-build/app/views/users/_sidebar.html.haml

22 lines
860 B
Plaintext
Raw Normal View History

- act = action_name.to_sym
- contr = controller_name.to_sym
%aside
.admin-preferences
%ul
- if can? :edit, @user
%li{:class => (act == :edit && contr == :registrations) ? 'active' : ''}
= link_to t("layout.users.edit"), edit_user_path(@user)
- if can? :edit_platform_private_user, @user
%li{:class => (act == :private && contr == :users) ? 'active' : ''}
= link_to t("layout.users.user_private_settings"), user_private_settings_path(@user)
- if can? :user_settings_notifier, @user
%li{:class => (act == :show && contr == :'settings/notifier') ? 'active' : ''}
= link_to t("layout.users.settings_notifier"), user_settings_notifier_path(@user)
-#.block.notice
-# %h3= t("layout.users.groups")
-# .content
-# - @user.groups.each do |group|
-# %p= link_to group.name, group