From cac3a264b3332967a838f001b61ac5fe041ea01c Mon Sep 17 00:00:00 2001 From: Nicolas VARROT Date: Thu, 10 Nov 2016 14:40:30 +0100 Subject: [PATCH] Fixing style issue --- app/views/balloons/show.html.haml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/balloons/show.html.haml b/app/views/balloons/show.html.haml index b50823b..3587d42 100755 --- a/app/views/balloons/show.html.haml +++ b/app/views/balloons/show.html.haml @@ -42,15 +42,15 @@ .image-content{style:"padding:30px"} %img#balloon_image{style:"width:100%", :alt => "balloon image", :src => @balloon[:image][:original]}/ - - -if @balloon[:likes_count] == 1 - %span.likes{style:"font-size:20px;position:absolute;bottom:20px;right:20px;"} - %i.fa.fa-heart{style:"color:#d9534f"} - = "Une personne aime ce ballon" - -elsif @balloon[:likes_count] > 1 - %span.likes{style:"font-size:20px;position:absolute;bottom:20px;right:20px;"} - %i.fa.fa-heart{style:"color:#d9534f"} - = "#{@balloon[:likes_count] } personnes aiment ce ballon" + .balloon-footer{style:"position:relative;display:block;height:40px;"} + -if @balloon[:likes_count] == 1 + .likes{style:"font-size:20px;position:absolute;bottom:20px;right:20px;"} + %i.fa.fa-heart{style:"color:#d9534f"} + = "Une personne aime ce ballon" + -elsif @balloon[:likes_count] > 1 + .likes{style:"font-size:20px;position:absolute;bottom:20px;right:20px;"} + %i.fa.fa-heart{style:"color:#d9534f"} + = "#{@balloon[:likes_count] } personnes aiment ce ballon" = "#{@comments.count} Commentaire(s)" -if @comments.count > 0