Retrospring/app/views/shared/_answerbox.html.haml

20 lines
864 B
Plaintext

.panel.panel-default.answer-box{'data-id' => a.id}
.panel-heading
.media
- 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
.panel-body
%p= a.content
- if @user.nil?
%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-sm.btn-danger{name: 'ab-destroy', 'data-a-id' => a.id}
Delete