This commit is contained in:
nilsding 2014-12-27 00:39:03 +01:00
parent 4961a44d59
commit c817f32b18
1 changed files with 3 additions and 8 deletions

View File

@ -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
.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