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

26 lines
1.0 KiB
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
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 14:10:26 -08:00
%a.btn.btn-block.btn-primary{target: '_blank', href: "https://twitter.com/intent/tweet?text=Ask%20me%20anything%21&url=#{show_user_profile_url(current_user.screen_name)}"} Share on Twitter
.panel.panel-default.warning--panel
.panel-heading
2014-12-21 05:28:33 -08:00
%h3.panel-title Actions
.panel-body
2014-12-21 06:36:57 -08:00
%button.btn.btn-block.btn-danger{type: :button, id: 'ib-delete-all', disabled: (@inbox.empty? ? 'disabled' : nil), data: { ib_count: @inbox.count }} 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)