From c61b9ddf50c0019c904e3b7fda0d383a1dba5e00 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Tue, 17 Feb 2015 23:57:34 +0100 Subject: [PATCH] fix #83 --- app/views/shared/_answerbox.html.haml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index f46c90c3..f94909bf 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -54,7 +54,17 @@ = render 'shared/answerbox_buttons', a: a - else .row - .col-md-6.col-md-offset-6.col-sm-8.col-sm-offset-4.col-xs-6.col-xs-offset-6.text-right + .col-md-6.col-sm-4.col-xs-6.text-left.text-muted + - if a.question.author_is_anonymous? + %i.fa.fa-clock-o + %a{href: show_user_answer_path(a.user.screen_name, a.id)} + %span= time_ago_in_words(a.created_at) + ago + - else + %i.fa.fa-clock-o + %span= time_ago_in_words(a.created_at) + ago + .col-md-6.col-sm-8.col-xs-6.text-right = render 'shared/answerbox_buttons', 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