mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Merge pull request #488 from internetee/fix-registrar-area-login-page-layout
Fix registrar area home link
This commit is contained in:
commit
34e66bb259
2 changed files with 53 additions and 0 deletions
45
app/views/layouts/registrar/sessions.haml
Normal file
45
app/views/layouts/registrar/sessions.haml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
!!! 5
|
||||||
|
%html{lang: I18n.locale.to_s}
|
||||||
|
%head
|
||||||
|
%meta{charset: "utf-8"}/
|
||||||
|
%meta{content: "IE=edge", "http-equiv" => "X-UA-Compatible"}/
|
||||||
|
%meta{content: "width=device-width, initial-scale=1", name: "viewport"}/
|
||||||
|
- if content_for? :head_title
|
||||||
|
= yield :head_title
|
||||||
|
- else
|
||||||
|
%title= t(:registrar_head_title)
|
||||||
|
= csrf_meta_tags
|
||||||
|
= stylesheet_link_tag 'registrar-manifest', media: 'all'
|
||||||
|
= javascript_include_tag 'registrar-manifest'
|
||||||
|
= favicon_link_tag 'favicon.ico'
|
||||||
|
%body
|
||||||
|
%nav.navbar.navbar-default.navbar-fixed-top
|
||||||
|
.container
|
||||||
|
.navbar-header
|
||||||
|
%button.navbar-toggle.collapsed{"aria-controls" => "navbar", "aria-expanded" => "false", "data-target" => "#navbar", "data-toggle" => "collapse", :type => "button"}
|
||||||
|
%span.sr-only Toggle navigation
|
||||||
|
%span.icon-bar
|
||||||
|
%span.icon-bar
|
||||||
|
%span.icon-bar
|
||||||
|
= link_to registrar_root_path, class: 'navbar-brand', id: 'registrar-home-btn' do
|
||||||
|
= t(:registrar_head_title)
|
||||||
|
- if unstable_env.present?
|
||||||
|
.text-center
|
||||||
|
%small{style: 'color: #0074B3;'}= unstable_env
|
||||||
|
- if current_user
|
||||||
|
= render 'navbar'
|
||||||
|
|
||||||
|
.container
|
||||||
|
= render 'shared/flash'
|
||||||
|
- if depp_controller?
|
||||||
|
= render 'registrar/shared/epp_results'
|
||||||
|
= yield
|
||||||
|
|
||||||
|
%footer.footer
|
||||||
|
.container
|
||||||
|
%row
|
||||||
|
.col-md-6
|
||||||
|
= image_tag 'eis-logo-et.png'
|
||||||
|
.col-md-6.text-right
|
||||||
|
Version
|
||||||
|
= CURRENT_COMMIT_HASH
|
8
spec/features/registrar/home_link_spec.rb
Normal file
8
spec/features/registrar/home_link_spec.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.feature 'Registrar area home link', db: true do
|
||||||
|
scenario 'is visible' do
|
||||||
|
visit registrar_login_url
|
||||||
|
expect(page).to have_link('registrar-home-btn', href: registrar_root_path)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue