Fix link switch not showing for default front end

This commit is contained in:
chris committed 2013-03-19 17:49:46 +08:00
1 parent 5e4e3ac560
commit f3c809fd58
3 files changed
+12 -12

No files matched your search

@@ -8,7 +8,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
# GET /bulletins
# GET /bulletins.xml
def index_bulletins_by_unit
@page = Page.find(params[:page_id]) rescue nil
@item = Page.find(params[:page_id]) rescue nil
@bulletins=Bulletin.all.available_for_lang(I18n.locale).can_display.where("cache_dept.#{I18n.locale.to_s.downcase}"=>params[:name]).page( params[:page_main]).per(15)
render :index
end
@@ -24,7 +24,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
@frontend_style = @item.frontend_style
end
@page = Page.find(params[:page_id]) rescue nil
@item = Page.find(params[:page_id]) rescue nil
if !params[:search_query].blank?
# search_cond = {:is_checked=>true,:is_hidden=>false,:is_pending => false}
# search_cond.merge!({:bulletin_category_id => "#{params[:category_id]}" }) if !params[:category_id].blank?
@@ -59,7 +59,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
end
def show
@page = Page.find(params[:page_id]) rescue nil
@item = Page.find(params[:page_id]) rescue nil
if params[:preview] == "true"
preview_content
else