From 4d944e1684feab6ec08940261cae0eb97c5c5032 Mon Sep 17 00:00:00 2001 From: nilsding <nilsding@nilsding.org> Date: Fri, 12 Dec 2014 18:49:34 +0100 Subject: [PATCH] Karim abused this too much --- app/views/shared/_answerbox.html.haml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index 5c7658c1..bb916e92 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -20,7 +20,13 @@ %p.answerbox--question-text = a.question.content .panel-body - %p= a.content + %p= a.content[0..255] + - if a.content.length > 255 + [...] + %br/ + Answer too long to display. + %a{href: show_user_answer_path(a.user.screen_name, a.id)} + Read the entire answer - if @user.nil? .row .col-md-6.col-sm-4.col-xs-7.text-left.text-muted