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-02-07 15:59:07 -08:00
|
|
|
.col-md-3.col-xs-12.col-sm-3.hidden-xs
|
|
|
|
= render 'inbox/sidebar'
|
2014-12-20 05:37:14 -08:00
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
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?
|
|
|
|
Nothing to see here.
|
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 }}
|
|
|
|
Load more
|
2014-11-11 11:24:49 -08:00
|
|
|
|
2015-02-07 15:59:07 -08:00
|
|
|
.col-md-9.col-xs-12.col-sm-9.visible-xs
|
|
|
|
= 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)
|