2015-05-13 15:02:19 -07:00
|
|
|
- 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
|
2020-04-19 14:14:05 -07:00
|
|
|
.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
|
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
|
|
|
|
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
|
|
|
|
2015-02-12 13:09:11 -08:00
|
|
|
#pagination= will_paginate @inbox, renderer: BootstrapPagination::Rails, page_links: false
|
2015-02-12 12:59:46 -08:00
|
|
|
|
2015-02-12 13:09:11 -08:00
|
|
|
- if @inbox.next_page
|
|
|
|
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @inbox.current_page }}
|
2015-06-06 15:24:27 -07:00
|
|
|
= t 'views.actions.load'
|
2014-11-11 11:24:49 -08:00
|
|
|
|
2020-04-19 14:14:05 -07: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-17 04:19:59 -08:00
|
|
|
|
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)
|