From 612df9f89eda72b422e275bcdcd7175dbd541ab8 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 25 Feb 2020 11:45:32 +0100 Subject: [PATCH] suite --- app/views/public/m_odrs/show.html.haml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/views/public/m_odrs/show.html.haml b/app/views/public/m_odrs/show.html.haml index 5a216f7..e9dd0e2 100644 --- a/app/views/public/m_odrs/show.html.haml +++ b/app/views/public/m_odrs/show.html.haml @@ -29,18 +29,20 @@ -if @m_odr.start_at > Date.today - %div{:style => "font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;line-height:200px;position:relative;top:-35px"} + %div{:style => "margin-top:20px;font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;"} -count = ((@m_odr.start_at) - (Date.today)) -if @m_odr.landing_text? =@m_odr.landing_text -else - Démarrage dans - .clock{:style => "margin:2em;display:inline-block;width:auto;margin:0 auto;position:relative;top:35px"} - -if count > 1 - jours ! - -else - jour ! + Démarrage + %div{:style => "font-weight:bold;font-weight:800;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;line-height:200px;position:relative;top:-40px"} + dans + .clock{:style => "margin:2em;display:inline-block;width:auto;margin:0 auto;position:relative;top:35px"} + -if count > 1 + jours ! + -else + jour !