Put back impressionist where it was commented out
This commit is contained in:
parent
50b313976e
commit
6a94d4f550
|
@ -10,7 +10,7 @@ class PagesController < ApplicationController
|
||||||
@item = Page.find_by_name('home')
|
@item = Page.find_by_name('home')
|
||||||
|
|
||||||
if @item
|
if @item
|
||||||
#impressionist(@item)
|
impressionist(@item)
|
||||||
render_page
|
render_page
|
||||||
else
|
else
|
||||||
render :text => 'You need a home page'
|
render :text => 'You need a home page'
|
||||||
|
@ -21,7 +21,7 @@ class PagesController < ApplicationController
|
||||||
#begin
|
#begin
|
||||||
@item = Item.first(:conditions => {:path => params[:page_name]})
|
@item = Item.first(:conditions => {:path => params[:page_name]})
|
||||||
if @item && @item.is_published && (@item.enabled_for.nil? ? true : @item.enabled_for.include?(I18n.locale.to_s))
|
if @item && @item.is_published && (@item.enabled_for.nil? ? true : @item.enabled_for.include?(I18n.locale.to_s))
|
||||||
# impressionist(@item)
|
impressionist(@item)
|
||||||
case @item.class.to_s
|
case @item.class.to_s
|
||||||
when 'Page'
|
when 'Page'
|
||||||
render_page
|
render_page
|
||||||
|
|
|
@ -44,7 +44,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
|
||||||
else
|
else
|
||||||
@bulletin = Bulletin.all.available_for_lang(I18n.locale).can_display.where(_id: params[:id]).first
|
@bulletin = Bulletin.all.available_for_lang(I18n.locale).can_display.where(_id: params[:id]).first
|
||||||
unless @bulletin.disable?
|
unless @bulletin.disable?
|
||||||
#impressionist(@bulletin)
|
impressionist(@bulletin)
|
||||||
get_categorys
|
get_categorys
|
||||||
else
|
else
|
||||||
render :nothing => true, :status => 403
|
render :nothing => true, :status => 403
|
||||||
|
|
|
@ -42,7 +42,7 @@ class Panel::News::FrontEnd::NewsBulletinsController < OrbitWidgetController
|
||||||
else
|
else
|
||||||
@news_bulletin = NewsBulletin.all.available_for_lang(I18n.locale).can_display.where(_id: params[:id]).first
|
@news_bulletin = NewsBulletin.all.available_for_lang(I18n.locale).can_display.where(_id: params[:id]).first
|
||||||
unless @news_bulletin.disable?
|
unless @news_bulletin.disable?
|
||||||
# impressionist(@news_bulletin)
|
impressionist(@news_bulletin)
|
||||||
get_categorys
|
get_categorys
|
||||||
else
|
else
|
||||||
render :nothing => true, :status => 403
|
render :nothing => true, :status => 403
|
||||||
|
|
|
@ -8,7 +8,7 @@ class Panel::PageContent::FrontEnd::PageContextsController < OrbitWidgetControll
|
||||||
def index
|
def index
|
||||||
# @page_context = PageContext.where("page_id" => params[:page_id], :archived => false)
|
# @page_context = PageContext.where("page_id" => params[:page_id], :archived => false)
|
||||||
@page_context = PageContext.first(conditions: { page_id: params[:page_id], :archived => false })
|
@page_context = PageContext.first(conditions: { page_id: params[:page_id], :archived => false })
|
||||||
#impressionist(@page_context)
|
impressionist(@page_context)
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # index.html.erb
|
format.html # index.html.erb
|
||||||
|
|
Reference in New Issue