[refs #270] created admins menu aside
This commit is contained in:
parent
4ce3e5bf32
commit
1066307fbb
|
@ -0,0 +1,3 @@
|
|||
- content_for :submenu do
|
||||
%nav
|
||||
= render :partial => 'layouts/menu/top', :locals => {:which_menu => 'admins_menu'}
|
|
@ -17,3 +17,5 @@
|
|||
= render @event_logs
|
||||
.actions-bar.wat-cf
|
||||
.actions= will_paginate
|
||||
|
||||
= render 'admins/submenu'
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
.left
|
||||
.middle
|
||||
%menu
|
||||
= render 'layouts/menu/top'
|
||||
= render :partial => 'layouts/menu/top', :locals => {:which_menu => 'top_menu'}
|
||||
.logo= link_to image_tag('logo-mini.png', :alt => 'logo'), root_path
|
||||
.information
|
||||
= render 'search/form'
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
%ul
|
||||
- (collection = t 'top_menu').each do |base, title|
|
||||
- (collection = t which_menu).each do |base, title|
|
||||
- if can? :index, base.to_s.classify.constantize
|
||||
%li= link_to title, send(:"#{base}_path"), :class => [].tap{|c| c << 'first' if collection.first.first == base; c << 'active' if params[:controller] == base.to_s}.join(' ')
|
||||
%li= link_to title, send(:"#{base}_path"), :class => [].tap{|c| c << 'first' if collection.first.first == base; c << 'active' if params[:controller] == base.to_s}.join(' ')
|
||||
- if current_user.admin? && which_menu == 'top_menu'
|
||||
%li= link_to 'Admin', users_path, :class => t('admins_menu').has_key?(params[:controller].to_sym) ? 'active' : ''
|
||||
|
|
|
@ -36,3 +36,4 @@
|
|||
#{link_to t("layout.delete"), user_path(user), :method => :delete, :confirm => t("layout.users.confirm_delete")}
|
||||
.actions-bar.wat-cf
|
||||
.actions= will_paginate @users, :param_name => :user_page
|
||||
= render 'admins/submenu'
|
||||
|
|
|
@ -10,9 +10,7 @@ en:
|
|||
platforms: Platforms
|
||||
projects: Projects
|
||||
build_lists: Task monitoring
|
||||
users: Users
|
||||
groups: Groups
|
||||
event_logs: Event log
|
||||
bottom_menu:
|
||||
copyright: ROSA Lab © 2012
|
||||
about: About company
|
||||
|
@ -35,3 +33,6 @@ en:
|
|||
wiki: Wiki
|
||||
platform_menu:
|
||||
settings: Settings
|
||||
admins_menu:
|
||||
users: Пользователи
|
||||
event_logs: Лог событий
|
||||
|
|
|
@ -10,9 +10,7 @@ ru:
|
|||
platforms: Платформы
|
||||
projects: Проекты
|
||||
build_lists: Мониторинг задач
|
||||
users: Пользователи
|
||||
groups: Группы
|
||||
event_logs: Лог событий
|
||||
bottom_menu:
|
||||
copyright: ROSA Лаб. © 2012
|
||||
about: О компании
|
||||
|
@ -35,3 +33,6 @@ ru:
|
|||
wiki: Вики
|
||||
platform_menu:
|
||||
settings: Настройки
|
||||
admins_menu:
|
||||
users: Пользователи
|
||||
event_logs: Лог событий
|
||||
|
|
Loading…
Reference in New Issue