Change pagination in bulletins

This commit is contained in:
Christophe Vilayphiou 2012-02-20 17:48:04 +08:00
parent 20c320961f
commit ad27537cf7
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class Panel::Announcement::Widget::BulletinsController < ObitWidgetController
@tags = AnnouncementTag.all @tags = AnnouncementTag.all
@selected_tag = AnnouncementTag.find(params[:id]) rescue @tags[0] @selected_tag = AnnouncementTag.find(params[:id]) rescue @tags[0]
@bulletins = @selected_tag.get_visible_bulletins.page(params[:page]).per(5) rescue nil @bulletins = @selected_tag.get_visible_bulletins.page(params[:page]).per(5) rescue nil
@web_links = WebResourceTag.first(:conditions => {:en => @selected_tag[:en]}).get_visible_links.page(params[:page]).per(1) rescue nil @web_links = WebResourceTag.first(:conditions => {:en => @selected_tag[:en]}).get_visible_links.page(params[:page]).per(5) rescue nil
end end
def reload_bulletins def reload_bulletins