mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 01:03:35 +02:00
Moved flash view under shared
This commit is contained in:
parent
11399958f5
commit
4c660df43e
3 changed files with 19 additions and 21 deletions
|
@ -29,30 +29,30 @@
|
||||||
.navbar-collapse.collapse
|
.navbar-collapse.collapse
|
||||||
%ul.nav.navbar-nav
|
%ul.nav.navbar-nav
|
||||||
- if can? :show, Domain
|
- if can? :show, Domain
|
||||||
%li= link_to t('domains'), admin_domains_path
|
%li= link_to t(:domains), admin_domains_path
|
||||||
- if can? :show, Contact
|
- if can? :show, Contact
|
||||||
%li= link_to t('contacts'), admin_contacts_path
|
%li= link_to t(:contacts), admin_contacts_path
|
||||||
- if can? :show, Registrar
|
- if can? :show, Registrar
|
||||||
%li= link_to t('registrars'), admin_registrars_path
|
%li= link_to t(:registrars), admin_registrars_path
|
||||||
- if can? :show, Keyrelay
|
- if can? :show, Keyrelay
|
||||||
%li= link_to t('keyrelays'), admin_keyrelays_path
|
%li= link_to t(:keyrelays), admin_keyrelays_path
|
||||||
- if can?(:access, :settings_menu)
|
- if can?(:access, :settings_menu)
|
||||||
%li.dropdown
|
%li.dropdown
|
||||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
||||||
= t('settings')
|
= t(:settings)
|
||||||
%span.caret
|
%span.caret
|
||||||
%ul.dropdown-menu{role: "menu"}
|
%ul.dropdown-menu{role: "menu"}
|
||||||
%li.dropdown-header= t('users')
|
%li.dropdown-header= t(:users)
|
||||||
%li= link_to t(:api_users), admin_api_users_path
|
%li= link_to t(:api_users), admin_api_users_path
|
||||||
%li= link_to t(:admin_users), admin_admin_users_path
|
%li= link_to t(:admin_users), admin_admin_users_path
|
||||||
%li.divider
|
%li.divider
|
||||||
%li.dropdown-header= t('billing')
|
%li.dropdown-header= t(:billing)
|
||||||
%li= link_to t('bank_statements'), admin_bank_statements_path
|
%li= link_to t(:bank_statements), admin_bank_statements_path
|
||||||
%li= link_to t('invoices'), admin_invoices_path
|
%li= link_to t(:invoices), admin_invoices_path
|
||||||
%li.divider
|
%li.divider
|
||||||
%li.dropdown-header= t('system')
|
%li.dropdown-header= t(:system)
|
||||||
%li= link_to t('settings'), admin_settings_path
|
%li= link_to t(:settings), admin_settings_path
|
||||||
%li= link_to t('zonefile'), admin_zonefile_settings_path
|
%li= link_to t(:zonefile), admin_zonefile_settings_path
|
||||||
-# %li= link_to t(:domains_history), admin_domain_versions_path
|
-# %li= link_to t(:domains_history), admin_domain_versions_path
|
||||||
%li= link_to t(:epp_logs), admin_epp_logs_path
|
%li= link_to t(:epp_logs), admin_epp_logs_path
|
||||||
%li= link_to t(:repp_logs), admin_repp_logs_path
|
%li= link_to t(:repp_logs), admin_repp_logs_path
|
||||||
|
@ -60,11 +60,10 @@
|
||||||
|
|
||||||
- if signed_in?
|
- if signed_in?
|
||||||
%ul.nav.navbar-nav.navbar-right
|
%ul.nav.navbar-nav.navbar-right
|
||||||
%li= link_to t('log_out', user: current_user), '/admin/logout'
|
%li= link_to t(:log_out, user: current_user), '/admin/logout'
|
||||||
|
|
||||||
/ /.nav-collapse
|
|
||||||
.container
|
.container
|
||||||
= render 'registrar/shared/flash'
|
= render 'shared/flash'
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
.footer.text-right
|
.footer.text-right
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
- if can? :show, Invoice
|
- if can? :show, Invoice
|
||||||
- active_class = ['registrar/invoices'].include?(params[:controller]) ? 'active' :nil
|
- active_class = ['registrar/invoices'].include?(params[:controller]) ? 'active' :nil
|
||||||
%li{class: active_class}= link_to t('billing'), registrar_invoices_path
|
%li{class: active_class}= link_to t(:billing), registrar_invoices_path
|
||||||
|
|
||||||
- if can? :view, :registrar_xml_console
|
- if can? :view, :registrar_xml_console
|
||||||
- active_class = ['registrar/xml_consoles'].include?(params[:controller]) ? 'active' :nil
|
- active_class = ['registrar/xml_consoles'].include?(params[:controller]) ? 'active' :nil
|
||||||
|
@ -47,15 +47,14 @@
|
||||||
|
|
||||||
%ul.nav.navbar-nav.navbar-right
|
%ul.nav.navbar-nav.navbar-right
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
%li= link_to t('log_out', user: current_user), '/registrar/logout'
|
%li= link_to t(:log_out, user: current_user), '/registrar/logout'
|
||||||
/ /.nav-collapse
|
|
||||||
/ Begin page content
|
|
||||||
.container
|
.container
|
||||||
= render 'registrar/shared/flash'
|
= render 'shared/flash'
|
||||||
- if depp_controller?
|
- if depp_controller?
|
||||||
= render 'registrar/shared/epp_results'
|
= render 'registrar/shared/epp_results'
|
||||||
|
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
%footer.footer
|
%footer.footer
|
||||||
.container
|
.container
|
||||||
%row
|
%row
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue