hide images if anonymous and links to profiles
This commit is contained in:
parent
9f33ab5566
commit
3496cd7f0a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue