Fixed Mobile Site
This commit is contained in:
parent
91d5ab6352
commit
82ffc7c3fd
|
@ -7,7 +7,7 @@ class MobileController < ApplicationController
|
||||||
def index
|
def index
|
||||||
date_now = Time.now
|
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)
|
@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
|
end
|
||||||
|
|
||||||
def announcement
|
def announcement
|
||||||
|
|
Loading…
Reference in New Issue