added answerbox
This commit is contained in:
parent
e128686297
commit
4476e54ca5
|
@ -0,0 +1,11 @@
|
|||
.panel.panel-default.answer-box{'data-id' => a.id}
|
||||
.panel-body
|
||||
%p
|
||||
%strong= a.question.content
|
||||
%small= user_screen_name a.question.user, a.question.author_is_anonymous
|
||||
%hr/
|
||||
%p= a.content
|
||||
%br/
|
||||
- if privileged?
|
||||
%button.btn.btn-danger{name: 'ab-destroy', 'data-a-id' => a.id}
|
||||
Delete
|
|
@ -27,11 +27,5 @@
|
|||
.col-md-9.col-xs-12.col-sm-9
|
||||
= render 'shared/questionbox'
|
||||
- @answers.each do |a|
|
||||
.panel.panel-default
|
||||
.panel-body
|
||||
%p
|
||||
%strong= a.question.content
|
||||
%small= user_screen_name a.question.user, a.question.author_is_anonymous
|
||||
%hr/
|
||||
%p= a.content
|
||||
= render 'shared/answerbox', a: a
|
||||
.visible-xs= render 'shared/links'
|
||||
|
|
Loading…
Reference in New Issue