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

14 lines
432 B
Plaintext

.panel.panel-default.answer-box{'data-id' => a.id}
.panel-heading
.media
.media-left
%img.img-rounded.img-answerbox
.media-body
%h4.media-heading= = user_screen_name a.question.user, a.question.author_is_anonymous
%p= a.question.content
.panel-body
%p= a.content
%br/
- if privileged? a.user
%button.btn.btn-danger{name: 'ab-destroy', 'data-a-id' => a.id}
Delete