Added demo switch dropdown

This commit is contained in:
Priit Tark 2015-04-01 13:26:04 +03:00
parent b3e3fc8703
commit 6231505cb4
2 changed files with 12 additions and 0 deletions

View file

@ -43,8 +43,18 @@
- active_class = ['depp/xml_consoles'].include?(params[:controller]) ? 'active' :nil - active_class = ['depp/xml_consoles'].include?(params[:controller]) ? 'active' :nil
%li{class: active_class}= link_to t(:xml_console), depp.xml_console_path %li{class: active_class}= link_to t(:xml_console), depp.xml_console_path
%ul.nav.navbar-nav.navbar-right %ul.nav.navbar-nav.navbar-right
%li= link_to t('log_out', user: current_user), '/registrar/logout' %li= link_to t('log_out', user: current_user), '/registrar/logout'
%li.dropdown
= link_to 'Registrar <span class="caret"></span>'.html_safe, '#',
class: 'dropdown-toggle', 'data-toggle': 'dropdown', role: 'button'
%ul.dropdown-menu{'role': 'menu'}
%li.dropdown-header= t(:switch_to) + ':'
%li= link_to t(:registrant), '#'
%li= link_to t(:registrar), '#'
%li.divider
%li= link_to t(:admin_menu), '#'
/ /.nav-collapse / /.nav-collapse
.container .container

View file

@ -509,3 +509,5 @@ en:
sim_error: 'SIM application error' sim_error: 'SIM application error'
internal_error: 'Internal error' internal_error: 'Internal error'
client_side_status_editing_error: 'Parameter value policy error. Client-side object status management not supported' client_side_status_editing_error: 'Parameter value policy error. Client-side object status management not supported'
switch_to: Switch to
admin_menu: Admin