From 9daeafbad328c38d7645a900f983dbac800df640 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Thu, 28 Jan 2016 17:16:37 +0100 Subject: [PATCH] Footer --- app/assets/stylesheets/application.scss | 20 ++++++++++++++++++++ app/views/layouts/application.html.haml | 20 +++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 2a182c3cd..9a439eed5 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -25,6 +25,26 @@ body { background-color: rgb(255, 255, 255) } +html, body { + height: 100%; +} + +#wrap { + min-height: 100%; + margin-bottom: -50px; +} +#wrap:after { + content: ""; + display: block; +} +#footer, #wrap:after { + height: 40px; +} + +#footer { + background-color: rgb(240, 240, 240) +} + .logo { margin-left: 10px; padding-top: 5px; diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index ff95e38cb..f673a845e 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -12,7 +12,7 @@ %body #beta Beta - %div + %div#wrap %div.navbar = image_tag('marianne_small.png', class: 'logo') %a{href: '/'} @@ -50,3 +50,21 @@ %div{:style => 'margin-left:10%; margin-right:10%;'} = yield + + %br + + #footer.navbar + .container.center + %p{style:'margin-top: 1em;'} + %p{class: "copyright text-muted small"} + Copyright © + + =link_to 'SGMAP', "http://etatplateforme.modernisation.gouv.fr" + + 2016. All Rights Reserved + + =link_to 'contact@tps.apientreprise.fr', "mailto:contact@tps.apientreprise.fr" + + + +