diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 3fc8f5a90036ab7d4720acb536f109fb7053566d..d7877f54e00009e63431579fd0cb297347383e3e 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -18,9 +18,12 @@ class NotificationsController < ApplicationController end def index - @notifications = Notification.for(current_user).limit(25) + @notifications = Notification.for(current_user).paginate :page => params[:page], :per_page => 25 @group_days = @notifications.group_by{|note| note.created_at.strftime("%B %d") } respond_with @notifications end - + + def delete + + end end diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index 45d5048414e6524ea30a2f930f4dff1c8e7e429e..a2b8b6267aacf6717fc4ed9d23956e512b59da27 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -40,3 +40,4 @@ = object_link(note) %span.time= "#{t('ago', :time => time_ago_in_words(note.created_at))}" + = will_paginate @people