fix design index bug when start start from blank DB.
add delay impressionist. add several i18n vars
This commit is contained in:
1 parent
37aa950028
commit
54a35b30be
18 files changed
+83
-96
No files matched your search
@@ -14,7 +14,7 @@ class PagesController < ApplicationController
|
||||
@item = Page.find_by_name('home')
|
||||
|
||||
if @item
|
||||
impressionist(@item)
|
||||
delayed_impressionist(@item)
|
||||
render_page
|
||||
else
|
||||
redirect_to '/admin/dashboards',:notice=>t(:need_home)
|
||||
@@ -26,7 +26,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)
|
||||
delayed_impressionist(@item)
|
||||
case @item.class.to_s
|
||||
when 'Page'
|
||||
if params[:clicked_field_name]
|
||||
|
||||
Reference in new issue
Block a user