Retrospring/app/views/notifications/index.html.haml

13 lines
558 B
Plaintext
Raw Normal View History

2014-12-09 14:07:04 -08:00
.container.j2-page
= render 'notification_tabs'
.col-md-9.col-xs-12.col-sm-9
2015-01-08 09:22:27 -08:00
%ul#notifications.list-group
2014-12-14 06:24:59 -08:00
- @notifications.each do |notification|
2015-01-08 09:22:27 -08:00
= render 'notifications/notification', notification: notification
2015-01-08 09:23:03 -08:00
#pagination= will_paginate @notifications, renderer: BootstrapPagination::Rails, page_links: false
2015-01-08 09:22:27 -08:00
2015-01-08 09:23:03 -08:00
- if @notifications.next_page
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @notifications.current_page }}
Load more
2014-12-14 06:15:15 -08:00
- Notification.for(current_user).update_all(new: false)