mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
removed redundant client view
This commit is contained in:
parent
156af9bb2b
commit
4a6c565928
1 changed files with 0 additions and 83 deletions
|
@ -1,83 +0,0 @@
|
||||||
%html{lang: "en"}
|
|
||||||
%head
|
|
||||||
%meta{charset: "utf-8"}/
|
|
||||||
%meta{content: "IE=edge", "http-equiv" => "X-UA-Compatible"}/
|
|
||||||
%meta{content: "width=device-width, initial-scale=1", name: "viewport"}/
|
|
||||||
%meta{content: "EPP-Client", name: "description"}/
|
|
||||||
%meta{content: "Gitlab LTD", name: "author"}/
|
|
||||||
= csrf_meta_tags
|
|
||||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
|
||||||
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
|
||||||
%link{href: "../../favicon.ico", rel: "icon"}/
|
|
||||||
%title
|
|
||||||
- if can? :view, :registrar
|
|
||||||
= t(:registrar)
|
|
||||||
- else
|
|
||||||
= t('eedirekt')
|
|
||||||
%body
|
|
||||||
/ Static navbar
|
|
||||||
.navbar.navbar-default.navbar-static-top{role: "navigation"}
|
|
||||||
.container
|
|
||||||
.navbar-header
|
|
||||||
%button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", type: "button"}
|
|
||||||
%span.sr-only Toggle navigation
|
|
||||||
%span.icon-bar
|
|
||||||
%span.icon-bar
|
|
||||||
%span.icon-bar
|
|
||||||
- if can? :view, :registrar
|
|
||||||
= link_to t(:registrar), client_domains_path, class: 'navbar-brand'
|
|
||||||
- else
|
|
||||||
= link_to t('eedirekt'), client_domains_path, class: 'navbar-brand'
|
|
||||||
|
|
||||||
.navbar-collapse.collapse
|
|
||||||
%ul.nav.navbar-nav
|
|
||||||
- active_class = ['client/domains', 'client/domain_transfers'].include?(params[:controller]) ? 'active' :nil
|
|
||||||
%li.dropdown{class: active_class}
|
|
||||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
|
||||||
= t('domains')
|
|
||||||
%span.caret
|
|
||||||
%ul.dropdown-menu{role: "menu"}
|
|
||||||
%li
|
|
||||||
= link_to t('domain_list'), client_domains_path
|
|
||||||
%li
|
|
||||||
= link_to t('domain_transfers_list'), client_domain_transfers_path
|
|
||||||
|
|
||||||
- active_class = ['client/contacts'].include?(params[:controller]) ? 'active' :nil
|
|
||||||
%li.dropdown{class: active_class}
|
|
||||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
|
||||||
= t('contacts')
|
|
||||||
%span.caret
|
|
||||||
%ul.dropdown-menu{role: "menu"}
|
|
||||||
%li
|
|
||||||
= link_to t('contact_list'), client_contacts_path
|
|
||||||
|
|
||||||
-# %li.dropdown
|
|
||||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
|
||||||
= t('history')
|
|
||||||
%span.caret
|
|
||||||
%ul.dropdown-menu{role: "menu"}
|
|
||||||
%li
|
|
||||||
= link_to t(:domains_history'), client_domain_versions_path
|
|
||||||
%li
|
|
||||||
= link_to t('contacts_history'), client_contact_versions_path
|
|
||||||
|
|
||||||
|
|
||||||
%ul.nav.navbar-nav.navbar-right
|
|
||||||
- if current_user.admin?
|
|
||||||
%li.dropdown
|
|
||||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: "#"}
|
|
||||||
= current_registrar
|
|
||||||
%span.caret
|
|
||||||
%ul.dropdown-menu{role: "menu"}
|
|
||||||
- Registrar.all.each do |x|
|
|
||||||
- next if x == current_registrar
|
|
||||||
%li
|
|
||||||
= link_to x, switch_registrar_sessions_path(registrar_id: x)
|
|
||||||
%li= link_to t('log_out', user: current_user), '/logout'
|
|
||||||
/ /.nav-collapse
|
|
||||||
.container
|
|
||||||
- display = (flash.empty?) ? 'none' : 'block'
|
|
||||||
#flash{style: "display: #{display};"}
|
|
||||||
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
|
||||||
.alert{class: type}= flash[:notice] || flash[:alert]
|
|
||||||
= yield
|
|
Loading…
Add table
Add a link
Reference in a new issue