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

25 lines
748 B
Plaintext

.container.j2-page
.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
.col-md-9.col-xs-12.col-sm-9
= render 'layouts/messages'
#entries
- @inbox.each do |i|
= render 'inbox/entry', i: i
- if @inbox.empty?
Nothing to see here.
= render "shared/links"
- @inbox.update_all(new: false)