added username of user who answered the question

This commit is contained in:
pixeldesu 2014-11-30 16:04:37 +01:00
parent 01aff9b673
commit c0c6ac182b
2 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,13 @@ body {
width: 32px;
}
.img-answerbox-small {
min-height: 20px;
min-width: 20px;
height: 20px;
width: 20px;
}
.answerbox-question-text, .answerbox-question-user {
margin-bottom: 0px;
}

View File

@ -10,6 +10,11 @@
.panel-body
%p= a.content
%br/
%p.text-muted
Answered by
%a{href: show_user_profile_path(a.user.screen_name)}
%img.img-rounded.img-answerbox-small{src: gravatar_url(a.user)}
%span= a.user.screen_name
- if privileged? a.user
%button.btn.btn-danger{name: 'ab-destroy', 'data-a-id' => a.id}
Delete