Split footer and flash messages in layouts
This commit is contained in:
parent
f5ec476416
commit
b62587f9ab
3 changed files with 31 additions and 34 deletions
7
app/views/layouts/_flash_messages.html.haml
Normal file
7
app/views/layouts/_flash_messages.html.haml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#flash_message.center
|
||||||
|
- if flash.notice
|
||||||
|
.alert.alert-success
|
||||||
|
= flash.notice
|
||||||
|
- if flash.alert
|
||||||
|
.alert.alert-danger
|
||||||
|
= flash.alert
|
15
app/views/layouts/_footer.html.haml
Normal file
15
app/views/layouts/_footer.html.haml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#footer
|
||||||
|
.container.center
|
||||||
|
%p{style:'margin-top: 1em;'}
|
||||||
|
%p{class: "copyright text-muted small"}
|
||||||
|
=link_to 'SGMAP', "http://etatplateforme.modernisation.gouv.fr"
|
||||||
|
|
||||||
|
2016
|
||||||
|
|
||||||
|
\-
|
||||||
|
|
||||||
|
=link_to 'CGU / Mentions légales', cgu_path
|
||||||
|
|
||||||
|
\-
|
||||||
|
|
||||||
|
=link_to 'Contact', "mailto:"+t('dynamics.contact_email')
|
|
@ -21,40 +21,15 @@
|
||||||
="<![endif]-->".html_safe
|
="<![endif]-->".html_safe
|
||||||
|
|
||||||
%div#wrap
|
%div#wrap
|
||||||
.row
|
%div.row
|
||||||
%div#header.navbar
|
%div#header.navbar
|
||||||
=render partial: "layouts/navbar"
|
= render partial: "layouts/navbar"
|
||||||
|
%div.row
|
||||||
.row
|
%div#left-pannel
|
||||||
#left-pannel
|
%div#main_div
|
||||||
#main_div
|
%div.row
|
||||||
.row
|
= render partial: 'layouts/flash_messages'
|
||||||
#flash_message.center
|
%div.row
|
||||||
- if flash.notice
|
|
||||||
.alert.alert-success
|
|
||||||
= flash.notice
|
|
||||||
- if flash.alert
|
|
||||||
.alert.alert-danger
|
|
||||||
= flash.alert
|
|
||||||
.row
|
|
||||||
= yield
|
= yield
|
||||||
|
= render partial: 'layouts/footer'
|
||||||
#footer
|
|
||||||
.container.center
|
|
||||||
%p{style:'margin-top: 1em;'}
|
|
||||||
%p{class: "copyright text-muted small"}
|
|
||||||
=link_to 'SGMAP', "http://etatplateforme.modernisation.gouv.fr"
|
|
||||||
|
|
||||||
2016
|
|
||||||
|
|
||||||
\-
|
|
||||||
|
|
||||||
=link_to 'CGU / Mentions légales', cgu_path
|
|
||||||
|
|
||||||
\-
|
|
||||||
|
|
||||||
=link_to 'Contact', "mailto:"+t('dynamics.contact_email')
|
|
||||||
|
|
||||||
= render partial: 'layouts/google_analytics'
|
= render partial: 'layouts/google_analytics'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue