From c0c6ac182baad1a860af67b19266233fa50cd696 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Sun, 30 Nov 2014 16:04:37 +0100 Subject: [PATCH] added username of user who answered the question --- app/assets/stylesheets/base.css.scss | 7 +++++++ app/views/shared/_answerbox.html.haml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/app/assets/stylesheets/base.css.scss b/app/assets/stylesheets/base.css.scss index 63a6a22f..69de13c9 100644 --- a/app/assets/stylesheets/base.css.scss +++ b/app/assets/stylesheets/base.css.scss @@ -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; } diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index 84be40aa..ac0a33c3 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -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 \ No newline at end of file