Put back impressionist where it was commented out

This commit is contained in:
Christophe Vilayphiou 2012-08-04 15:42:53 +08:00
parent 50b313976e
commit 6a94d4f550
4 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ class PagesController < ApplicationController
@item = Page.find_by_name('home')
if @item
#impressionist(@item)
impressionist(@item)
render_page
else
render :text => 'You need a home page'
@ -21,7 +21,7 @@ class PagesController < ApplicationController
#begin
@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))
# impressionist(@item)
impressionist(@item)
case @item.class.to_s
when 'Page'
render_page

View File

@ -44,7 +44,7 @@ class Panel::Announcement::FrontEnd::BulletinsController < OrbitWidgetController
else
@bulletin = Bulletin.all.available_for_lang(I18n.locale).can_display.where(_id: params[:id]).first
unless @bulletin.disable?
#impressionist(@bulletin)
impressionist(@bulletin)
get_categorys
else
render :nothing => true, :status => 403

View File

@ -42,7 +42,7 @@ class Panel::News::FrontEnd::NewsBulletinsController < OrbitWidgetController
else
@news_bulletin = NewsBulletin.all.available_for_lang(I18n.locale).can_display.where(_id: params[:id]).first
unless @news_bulletin.disable?
# impressionist(@news_bulletin)
impressionist(@news_bulletin)
get_categorys
else
render :nothing => true, :status => 403

View File

@ -8,7 +8,7 @@ class Panel::PageContent::FrontEnd::PageContextsController < OrbitWidgetControll
def index
# @page_context = PageContext.where("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|
format.html # index.html.erb