From 5829d4f1efebdc5c8d99e154cce9917e59f7761c Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 28 Dec 2014 19:11:36 +0100 Subject: [PATCH] removed unnecessary p tag --- app/views/shared/_answerbox.html.haml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index 0fc42e3b..fc24adae 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -23,16 +23,15 @@ %p.answerbox--question-text = a.question.content .panel-body - %p - - if @display_all.nil? - = markdown a.content[0..255] - - if a.content.length > 255 - [...] - %p - %a.btn.btn-primary{href: show_user_answer_path(a.user.screen_name, a.id)} - Read the entire answer - - else - = markdown a.content + - if @display_all.nil? + = markdown a.content[0..255] + - if a.content.length > 255 + [...] + %p + %a.btn.btn-primary{href: show_user_answer_path(a.user.screen_name, a.id)} + Read the entire answer + - else + = markdown a.content - if @user.nil? .row .col-md-6.col-sm-4.col-xs-7.text-left.text-muted