2014-11-11 09:02:59 -08:00
|
|
|
.container.j2-page
|
2014-12-20 05:37:14 -08:00
|
|
|
.row
|
|
|
|
.col-md-3.col-xs-12.col-sm-3
|
|
|
|
.panel.panel-default.inbox--panel
|
|
|
|
.panel-heading
|
2014-12-21 05:28:33 -08:00
|
|
|
%h3.panel-title Out of questions?
|
2014-12-20 05:37:14 -08:00
|
|
|
.panel-body
|
|
|
|
%button.btn.btn-block.btn-info{type: :button, id: 'ib-generate-question'} Get new question
|
2014-12-21 04:41:57 -08:00
|
|
|
.panel.panel-default.warning--panel
|
|
|
|
.panel-heading
|
2014-12-21 05:28:33 -08:00
|
|
|
%h3.panel-title Actions
|
2014-12-21 04:41:57 -08:00
|
|
|
.panel-body
|
2014-12-21 05:11:35 -08:00
|
|
|
%button.btn.btn-block.btn-danger{type: :button, id: 'ib-delete-all', disabled: (@inbox.empty? ? 'disabled' : nil)} Delete all questions
|
2014-12-20 05:37:14 -08:00
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
2014-12-21 04:41:57 -08:00
|
|
|
= render 'layouts/messages'
|
|
|
|
#entries
|
|
|
|
- @inbox.each do |i|
|
|
|
|
= render 'inbox/entry', i: i
|
2014-11-11 10:53:35 -08:00
|
|
|
|
2014-12-21 04:41:57 -08:00
|
|
|
- if @inbox.empty?
|
2014-11-11 11:24:49 -08:00
|
|
|
|
2014-12-21 04:41:57 -08:00
|
|
|
Nothing to see here.
|
2014-11-17 04:19:59 -08:00
|
|
|
|
2014-11-30 12:08:00 -08:00
|
|
|
= render "shared/links"
|
|
|
|
- @inbox.update_all(new: false)
|