From c817f32b1831ab4bec03ff845cf2dfb16efd708a Mon Sep 17 00:00:00 2001
From: nilsding <nilsding@nilsding.org>
Date: Sat, 27 Dec 2014 00:39:03 +0100
Subject: [PATCH] j

---
 app/views/shared/_answerbox.html.haml | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml
index 2a613203..8a53cdaa 100644
--- a/app/views/shared/_answerbox.html.haml
+++ b/app/views/shared/_answerbox.html.haml
@@ -49,11 +49,6 @@
       .row
         .col-md-6.col-md-offset-6.col-sm-8.col-sm-offset-4.col-xs-6.col-xs-offset-6.text-right
           = render 'shared/answerbox_buttons', a: a
-  -if @display_all.nil?
-    .panel-footer{id: "ab-comments-section-#{a.id}", style: 'display: none'}
-      %div{id: "ab-smiles-#{a.id}"}= render 'shared/smiles', a: a
-      %div{id: "ab-comments-#{a.id}"}= render 'shared/comments', a: a
-  - else
-    .panel-footer{id: "ab-comments-section-#{a.id}"}
-      %div{id: "ab-smiles-#{a.id}"}= render 'shared/smiles', a: a
-      %div{id: "ab-comments-#{a.id}"}= render 'shared/comments', a: a
\ No newline at end of file
+  .panel-footer{id: "ab-comments-section-#{a.id}", style: @display_all.nil? ? 'display: none' : nil }
+    %div{id: "ab-smiles-#{a.id}"}= render 'shared/smiles', a: a
+    %div{id: "ab-comments-#{a.id}"}= render 'shared/comments', a: a
\ No newline at end of file