Fix link switch not showing for default front end
This commit is contained in:
1 parent
5e4e3ac560
commit
f3c809fd58
3 files changed
+12
-12
No files matched your search
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user