restore code
This commit is contained in:
parent
d40f8cfc80
commit
7412c2f928
|
@ -1,8 +1,8 @@
|
|||
class AnnouncementsController < ApplicationController
|
||||
|
||||
def index
|
||||
if !OrbitHelper.widget_tags.blank?
|
||||
announcements = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil]).can_display.is_approved.order_by(:postdate=>'desc').filter_by_tags(OrbitHelper.widget_tags).page(OrbitHelper.page_number).per(OrbitHelper.page_data_count)
|
||||
if !OrbitHelper.params['tags'].blank?
|
||||
announcements = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil]).can_display.is_approved.order_by(:postdate=>'desc').filter_by_tags(OrbitHelper.params['tags']).page(OrbitHelper.page_number).per(OrbitHelper.page_data_count)
|
||||
else
|
||||
announcements = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil]).can_display.is_approved.order_by(:postdate=>'desc').filter_by_categories.filter_by_tags
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue