From 72140be316cda22ccaca1a7748f870ad3de5799d Mon Sep 17 00:00:00 2001 From: nilsding Date: Sat, 3 Jan 2015 19:02:06 +0100 Subject: [PATCH] moved answer thing to the bottom --- app/views/question/show.html.haml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/question/show.html.haml b/app/views/question/show.html.haml index 4c360262..92ade27f 100644 --- a/app/views/question/show.html.haml +++ b/app/views/question/show.html.haml @@ -14,6 +14,9 @@ ago %p.answerbox--question-text= @question.content + - @answers.each do |a| + = render 'shared/answerbox', a: a, show_question: false + - if user_signed_in? and !current_user.answered? @question .panel.panel-default#q-answer-box .panel-heading @@ -27,8 +30,4 @@ %label %input{type: 'checkbox', name: 'share', checked: :checked, data: { q_id: @question.id, service: service.provider }} Post to - = service.provider.capitalize - - - @answers.each do |a| - = render 'shared/answerbox', a: a, show_question: false - + = service.provider.capitalize \ No newline at end of file