2012-03-03 08:01:32 +00:00
|
|
|
- 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
|
2012-03-03 09:23:30 +00:00
|
|
|
%li{:class => (act == :show && contr == :notifiers) ? 'active' : ''}
|
2012-03-03 08:01:32 +00:00
|
|
|
= 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
|