This commit is contained in:
Andreas N 2015-02-17 23:57:34 +01:00
parent 9bffdec2a5
commit c61b9ddf50
1 changed files with 11 additions and 1 deletions

View File

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