move answer link to 'answered by username' section

This commit is contained in:
pixeldesu 2014-12-16 16:14:42 +01:00
parent cd076e8452
commit c3905791b6

View file

@ -9,9 +9,8 @@
%h6.text-muted.media-heading.answerbox--question-user
= user_screen_name a.question.user, a.question.author_is_anonymous
asked
%a{href: show_user_answer_path(a.user.screen_name, a.id)}
= time_ago_in_words(a.question.created_at)
ago
= time_ago_in_words(a.question.created_at)
ago
- unless a.question.author_is_anonymous
- if a.question.answer_count > 1
·
@ -37,8 +36,9 @@
%a{href: show_user_profile_path(a.user.screen_name)}
%img.img-rounded.answerbox--img-small{src: gravatar_url(a.user)}
%span= a.user.screen_name
%span= time_ago_in_words(a.created_at)
ago
%a{href: show_user_answer_path(a.user.screen_name, a.id)}
%span= time_ago_in_words(a.created_at)
ago
.col-md-6.col-sm-8.col-xs-5.text-right
= render 'shared/answerbox_buttons', a: a
- else