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
|
2012-03-03 16:03:23 +00:00
|
|
|
%li{:class => (act == :edit && :users == contr) ? 'active' : ''}
|
2012-03-12 18:13:10 +00:00
|
|
|
= link_to t("layout.users.profile"), @user == current_user ? edit_profile_path : edit_user_path(@user)
|
2012-03-03 16:03:23 +00:00
|
|
|
- if can? :private, @user
|
2012-03-03 08:01:32 +00:00
|
|
|
%li{:class => (act == :private && contr == :users) ? 'active' : ''}
|
|
|
|
= link_to t("layout.users.user_private_settings"), user_private_settings_path(@user)
|
2012-03-03 16:03:23 +00:00
|
|
|
- if can? :show, @user.notifier
|
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)
|