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

26 lines
738 B
Text
Raw Normal View History

- provide(:title, generate_title("Inbox"))
2014-11-11 18:02:59 +01:00
.container.j2-page
2014-12-20 14:37:14 +01:00
.row
2015-02-08 00:59:07 +01:00
.col-md-3.col-xs-12.col-sm-3.hidden-xs
= render 'inbox/sidebar'
2014-12-20 14:37:14 +01: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 19:53:35 +01:00
2015-02-12 22:09:11 +01:00
- if @inbox.empty?
Nothing to see here.
2015-02-12 21:59:46 +01:00
2015-02-12 22:09:11 +01:00
#pagination= will_paginate @inbox, renderer: BootstrapPagination::Rails, page_links: false
2015-02-12 21:59:46 +01:00
2015-02-12 22:09:11 +01: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 20:24:49 +01:00
2015-02-08 00:59:07 +01:00
.col-md-9.col-xs-12.col-sm-9.visible-xs
= render 'inbox/sidebar'
2014-11-30 21:08:00 +01:00
= render "shared/links"
2015-05-10 19:48:47 +02:00
- @inbox.update_all(new: false)