Retrospring/app/views/inbox/show.html.haml

25 lines
748 B
Plaintext
Raw Normal View History

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
%h3 Out of questions?
.panel-body
%button.btn.btn-block.btn-info{type: :button, id: 'ib-generate-question'} Get new question
.panel.panel-default.warning--panel
.panel-heading
%h3 Actions
.panel-body
%button.btn.btn-block.btn-danger{type: :button, id: 'ib-delete-all'} Delete all questions
2014-12-20 05:37:14 -08:00
.col-md-9.col-xs-12.col-sm-9
= render 'layouts/messages'
#entries
- @inbox.each do |i|
= render 'inbox/entry', i: i
2014-11-11 10:53:35 -08:00
- if @inbox.empty?
2014-11-11 11:24:49 -08:00
Nothing to see here.
2014-11-30 12:08:00 -08:00
= render "shared/links"
- @inbox.update_all(new: false)