mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Update depp layout
This commit is contained in:
parent
e9a62ea379
commit
f841d342b5
3 changed files with 13 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
class RegistrarController < ApplicationController
|
class RegistrarController < ApplicationController
|
||||||
before_action :authenticate_user!
|
before_action :authenticate_user!
|
||||||
layout 'registrar'
|
layout 'depp/application'
|
||||||
end
|
end
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
%span.icon-bar
|
%span.icon-bar
|
||||||
%span.icon-bar
|
%span.icon-bar
|
||||||
%span.icon-bar
|
%span.icon-bar
|
||||||
= link_to registrar_root_path, class: 'navbar-brand' do
|
= link_to main_app.registrar_root_path, class: 'navbar-brand' do
|
||||||
EIS Registrar
|
EIS Registrar
|
||||||
- if unstable_env.present?
|
- if unstable_env.present?
|
||||||
.text-center
|
.text-center
|
||||||
|
@ -29,7 +29,16 @@
|
||||||
.navbar-collapse.collapse
|
.navbar-collapse.collapse
|
||||||
%ul.nav.navbar-nav
|
%ul.nav.navbar-nav
|
||||||
- if can? :show, Invoice
|
- if can? :show, Invoice
|
||||||
%li= link_to t('invoices'), registrar_invoices_path
|
%li= link_to t('invoices'), main_app.registrar_invoices_path
|
||||||
|
|
||||||
|
- active_class = %w(domains check renew tranfer keyrelays).include?(params[:controller]) ? 'active' :nil
|
||||||
|
%li{class: active_class}= link_to t(:domains), depp.domains_path
|
||||||
|
|
||||||
|
- active_class = ['contacts'].include?(params[:controller]) ? 'active' :nil
|
||||||
|
%li{class: active_class}= link_to t(:contacts), contacts_path
|
||||||
|
|
||||||
|
- active_class = ['xml_consoles'].include?(params[:controller]) ? 'active' :nil
|
||||||
|
%li{class: active_class}= link_to t(:xml_console), 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'
|
||||||
|
|
|
@ -79,7 +79,7 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace(:registrar) do
|
namespace(:registrar) do
|
||||||
mount Depp::Engine, at: '/depp'
|
mount Depp::Engine, at: '/depp', as: 'depp'
|
||||||
|
|
||||||
resources :invoices
|
resources :invoices
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue