Fixed Mobile Site

This commit is contained in:
saurabhbhatia 2013-11-19 10:32:13 +08:00
parent 91d5ab6352
commit 82ffc7c3fd
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class MobileController < ApplicationController
def index
date_now = Time.now
@bulletins = Bulletin.all.available_for_lang(I18n.locale).can_display.any_of( {deadline: nil,:postdate.lte => date_now} , {:deadline.gte => date_now,:postdate.lte => date_now} ).desc( :is_top, :postdate).page(params[:page_main]).per(15)
@ad_banner = AdBanner.where(title: "Banner")[0]
@ad_banner = AdBanner.find(:all, :conditions => {:title => /Home/i})[0]
end
def announcement