demarches-normaliennes/app/views/layouts/application.html.haml

50 lines
1.9 KiB
Text
Raw Normal View History

2015-08-10 11:05:06 +02:00
%html
%head
2017-04-06 19:10:25 +02:00
%meta{ :content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type" }/
%meta{ name: "turbolinks-cache-control", content: "no-cache" }
2016-11-08 10:57:15 +01:00
%title
= t('dynamics.page_title')
2017-04-06 19:10:25 +02:00
%meta{ 'http-equiv' => "X-UA-Compatible", :content => "IE=edge" }
2017-04-17 19:32:26 +02:00
= favicon_link_tag(image_url("favicons/16x16.png"), type: "image/png", sizes: "16x16")
= favicon_link_tag(image_url("favicons/32x32.png"), type: "image/png", sizes: "32x32")
= favicon_link_tag(image_url("favicons/96x96.png"), type: "image/png", sizes: "96x96")
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': "reload"
= stylesheet_link_tag 'print', media: 'print', 'data-turbolinks-track': "reload"
= javascript_pack_tag 'application-old', defer: true, 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', defer: true, 'data-turbolinks-track': 'reload'
2015-08-10 11:05:06 +02:00
= csrf_meta_tags
:javascript
2018-08-09 16:45:56 +02:00
DATA = [{
sentry: #{raw(sentry_config)}
}];
2018-09-12 16:42:04 +02:00
%body{ class: browser.platform.ios? ? 'ios' : nil }
= render partial: 'layouts/outdated_browser_banner'
= render partial: 'layouts/pre_maintenance'
- if staging?
#beta
2016-11-30 11:04:50 +01:00
Env Test
#wrap
2017-04-06 15:32:05 +02:00
.row
#header.navbar
= render partial: "layouts/navbar"
2017-04-06 15:32:05 +02:00
.row.no-margin
- if RenderPartialService.left_panel_exist? @left_pannel_url
2017-04-06 15:32:05 +02:00
.col-xs-2#left-panel
2016-11-28 10:15:11 +01:00
= render partial: @left_pannel_url
- main_container_size = 10
- else
- main_container_size = 12
2017-04-06 19:10:25 +02:00
= render partial: 'layouts/main_container', locals: { main_container_size: main_container_size }
#mask-search
2016-11-29 09:56:11 +01:00
%h1
%i.fa.fa-times{ style: 'position: fixed; top: 10; right: 30; color: white;' }
= render partial: 'layouts/switch_devise_profile_module'
2017-04-06 19:10:25 +02:00
= render partial: 'layouts/footer', locals: { main_container_size: main_container_size }