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.panel-default.answer-box{'data-id' => a.id}
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.media
|
.media
|
||||||
%a.pull-left{href: '#'}
|
- unless a.question.author_is_anonymous
|
||||||
%img.img-rounded.img-answerbox{src: gravatar_url(a.question.user)}
|
%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
|
.media-body
|
||||||
%h6.text-muted.media-heading.answerbox-question-user= user_screen_name a.question.user, a.question.author_is_anonymous
|
%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
|
%p.answerbox-question-text= a.question.content
|
||||||
|
|
Loading…
Reference in New Issue