2015-05-14 00:02:19 +02:00
|
|
|
- provide(:title, generate_title("Notifications"))
|
2015-01-31 00:47:28 +01:00
|
|
|
= render 'notifications/notification_nav'
|
2014-12-09 23:07:04 +01:00
|
|
|
.container.j2-page
|
|
|
|
= render 'notification_tabs'
|
2015-08-28 16:29:02 +02:00
|
|
|
.col-md-9.col-xs-12.col-sm-8
|
2015-01-14 16:29:53 +01:00
|
|
|
.panel.panel-default
|
|
|
|
%ul#notifications.list-group
|
2015-09-16 22:18:40 +02:00
|
|
|
- if @notifications.count == 0
|
|
|
|
%li.list-group-item.text-center
|
|
|
|
.notifications--none
|
|
|
|
%i.fa.fa-bell-o.no-notifications
|
|
|
|
%p
|
|
|
|
- if params[:type] != "all"
|
|
|
|
No new notifications.
|
|
|
|
- else
|
|
|
|
No notifications.
|
|
|
|
- else
|
|
|
|
- @notifications.each do |notification|
|
|
|
|
= render 'notifications/notification', notification: notification
|
2015-01-08 18:22:27 +01:00
|
|
|
|
2015-01-08 18:23:03 +01:00
|
|
|
#pagination= will_paginate @notifications, renderer: BootstrapPagination::Rails, page_links: false
|
2015-01-08 18:22:27 +01:00
|
|
|
|
2015-01-08 18:23:03 +01:00
|
|
|
- if @notifications.next_page
|
|
|
|
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @notifications.current_page }}
|
|
|
|
Load more
|
2015-05-10 19:48:47 +02:00
|
|
|
- Notification.for(current_user).update_all(new: false)
|