hide images if anonymous and links to profiles

This commit is contained in:
pixeldesu 2014-11-30 14:43:27 +01:00
parent 9f33ab5566
commit 3496cd7f0a
1 changed files with 3 additions and 2 deletions

View File

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