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
|
2015-08-28 07:29:02 -07:00
|
|
|
.col-md-3.col-xs-12.col-sm-4.hidden-xs
|
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
|
|
|
|
2015-08-28 07:29:02 -07:00
|
|
|
.col-md-9.col-xs-12.col-sm-8.visible-xs
|
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"
|
2015-05-10 10:48:47 -07:00
|
|
|
- @inbox.update_all(new: false)
|