diff --git a/app/views/layouts/depp/application.haml b/app/views/layouts/depp/application.haml index 742f004fb..bb275044f 100644 --- a/app/views/layouts/depp/application.haml +++ b/app/views/layouts/depp/application.haml @@ -43,8 +43,18 @@ - active_class = ['depp/xml_consoles'].include?(params[:controller]) ? 'active' :nil %li{class: active_class}= link_to t(:xml_console), depp.xml_console_path + %ul.nav.navbar-nav.navbar-right %li= link_to t('log_out', user: current_user), '/registrar/logout' + %li.dropdown + = link_to 'Registrar '.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 .container diff --git a/config/locales/en.yml b/config/locales/en.yml index fcc2d813a..15fd92f07 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -509,3 +509,5 @@ en: sim_error: 'SIM application error' internal_error: 'Internal error' client_side_status_editing_error: 'Parameter value policy error. Client-side object status management not supported' + switch_to: Switch to + admin_menu: Admin