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

26 lines
807 B
Plaintext
Raw Normal View History

- provide(:title, generate_title("Inbox"))
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-4.d-none.d-sm-block
2015-02-07 15:59:07 -08:00
= render 'inbox/sidebar'
2015-08-28 07:29:02 -07:00
.col-md-9.col-xs-12.col-sm-8
= render 'layouts/messages'
#entries
- @inbox.each do |i|
= render 'inbox/entry', i: i
2014-11-11 10:53:35 -08:00
2015-02-12 13:09:11 -08:00
- if @inbox.empty?
2015-06-06 15:24:27 -07:00
= t 'views.inbox.empty'
2015-02-12 12:59:46 -08:00
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id
2015-02-12 12:59:46 -08:00
- if @more_data_available
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @inbox_last_id }}
2015-06-06 15:24:27 -07:00
= t 'views.actions.load'
2014-11-11 11:24:49 -08:00
.col-md-9.col-xs-12.col-sm-8.d-block.d-sm-none
2015-02-07 15:59:07 -08:00
= render 'inbox/sidebar'
2014-11-30 12:08:00 -08:00
= render "shared/links"
2020-04-18 15:59:18 -07:00
- Inbox.where(id: @inbox.ids).update_all(new: false)