[refs #818] add simple user navigation

This commit is contained in:
Alexander Machehin 2013-01-10 21:56:43 +06:00
parent abf83a563d
commit 1427f86b4c
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
- content_for :sidebar do
-if @filter == 'system'
.bordered
= link_to t("layout.users.list_header"), admin_users_path, :class => 'button'
.bordered
- if can? :create, User.new
= link_to t("layout.users.new"), new_admin_user_path(:system => @filter == 'system'), :class => 'button'
@ -14,6 +17,6 @@
%td.width18=radio_button_tag :myradio, 'system', true, {:id => 'users_filter', :class => 'niceRadio', :name => 'filter'}
%td.width135=t("layout.users.system")
.both
-if params[:action] != 'system'
-if @filter != 'system'
.bordered
= link_to t("layout.users.system"), system_admin_users_path, :class => 'button'