2014-11-11 09:02:59 -08:00
|
|
|
.container.j2-page
|
2014-11-11 11:24:49 -08:00
|
|
|
= render 'layouts/messages'
|
2014-11-10 22:10:41 -08:00
|
|
|
- @inbox.each do |i|
|
2014-11-11 11:24:49 -08:00
|
|
|
.panel.panel-default.inbox-box{'data-id' => i.id}
|
|
|
|
.panel-body
|
|
|
|
%p
|
|
|
|
%strong
|
|
|
|
= user_screen_name i.question.user, i.question.author_is_anonymous
|
|
|
|
asked:
|
|
|
|
%p
|
|
|
|
%strong
|
|
|
|
= i.question.content
|
2014-11-13 10:20:18 -08:00
|
|
|
%textarea.form-control{name: 'ib-answer', 'data-id' => i.id}
|
2014-11-11 11:24:49 -08:00
|
|
|
%br/
|
|
|
|
%button.btn.btn-success{name: 'ib-answer', 'data-ib-id' => i.id}
|
|
|
|
Answer
|
2014-11-11 10:53:35 -08:00
|
|
|
|
|
|
|
- if @inbox.empty?
|
2014-11-11 11:24:49 -08:00
|
|
|
|
2014-11-11 10:53:35 -08:00
|
|
|
Nothing to see here.
|