modified inbox a bit

This commit is contained in:
nilsding 2014-11-11 20:24:49 +01:00
parent fb48c6d995
commit b821476ba6
1 changed files with 15 additions and 12 deletions

View File

@ -1,17 +1,20 @@
.container.j2-page
= render 'layouts/messages'
- @inbox.each do |i|
.panel.inbox-box{'data-id' => i.id}
%p
%strong
= user_screen_name i.question.user, i.question.author_is_anonymous
asked:
%p
%strong
= i.question.content
%textarea{name: 'ib-answer', 'data-id' => i.id}
%br/
%button.btn.btn-success{name: 'ib-answer', 'data-ib-id' => i.id}
Answer
.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
%textarea{name: 'ib-answer', 'data-id' => i.id}
%br/
%button.btn.btn-success{name: 'ib-answer', 'data-ib-id' => i.id}
Answer
- if @inbox.empty?
Nothing to see here.