internetee-registry/app/views/layouts/devise.haml
Timo Võhmar 3ce0ae9941
Merge pull request #939 from internetee/add-body-css-class
Generate <body> CSS class for every action for better styling
2018-08-27 12:18:30 +03:00

29 lines
983 B
Text

!!! 5
%html{lang: I18n.locale.to_s}
%head
%meta{charset: "utf-8"}/
- if content_for? :head_title
= yield :head_title
- else
%title= t(:admin_head_title)
= csrf_meta_tags
= stylesheet_link_tag 'admin-manifest', media: 'all'
= favicon_link_tag 'favicon.ico'
%body{:style => env_style, class: body_css_class}
.navbar.navbar-inverse.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
= link_to new_admin_user_session_path, class: 'navbar-brand' do
= ENV['app_name']
- if unstable_env.present?
.text-center
%small{style: 'color: #0074B3;'}= unstable_env
.container
= render 'shared/flash'
= yield