Customizations for NKUT

This commit is contained in:
saurabhbhatia committed 2013-11-20 18:15:57 +08:00
1 parent 35ce0fda6e
commit c93dceafde
10 files changed
+29 -6

No files matched your search

+5
View File
@@ -2,6 +2,7 @@ class PagesController < ApplicationController
include ApplicationHelper
before_filter :get_item, :only => [:index_from_link, :show_from_link]
before_filter :check_frontend_open, :only => [:index,:show]
before_filter :get_last_update_date, :only => [:index,:show]
# caches_page :index
def index
@@ -216,4 +217,8 @@ class PagesController < ApplicationController
return false
end
end
def get_last_update_date
@last_update_date = t(:total_visitors)+' : '+ Impression.count.to_s+' | '+t(:update_at)+' : '+Bulletin.order_by(:updated_at.desc).limit(1).first[:updated_at].to_s
end
end