diff --git a/app/views/shared/_answerbox.html.haml b/app/views/shared/_answerbox.html.haml index 41a5c203..84be40aa 100644 --- a/app/views/shared/_answerbox.html.haml +++ b/app/views/shared/_answerbox.html.haml @@ -1,8 +1,9 @@ .panel.panel-default.answer-box{'data-id' => a.id} .panel-heading .media - %a.pull-left{href: '#'} - %img.img-rounded.img-answerbox{src: gravatar_url(a.question.user)} + - unless a.question.author_is_anonymous + %a.pull-left{href: show_user_profile_path(a.question.user.screen_name)} + %img.img-rounded.img-answerbox{src: gravatar_url(a.question.user)} .media-body %h6.text-muted.media-heading.answerbox-question-user= user_screen_name a.question.user, a.question.author_is_anonymous %p.answerbox-question-text= a.question.content