small change for new widget, categories removed from left side.
This commit is contained in:
parent
a88f4571f8
commit
eacafbcc86
|
@ -207,7 +207,7 @@ class NewsController < ApplicationController
|
|||
link = page.nil? ? "#" : "/#{I18n.locale.to_s + page.url}/"
|
||||
categories_for_dropdown.unshift({"name" => t("news.all"), "category-link" => link})
|
||||
|
||||
hot_news = NewsBulletin.where(:title.ne => "",:is_preview.in=>[false,nil], :category_id.in => categories.collect{|cat| cat.id}, :is_hot => true).can_display.is_approved.desc(:postdate).limit(1)
|
||||
hot_news = NewsBulletin.where(:title.ne => "",:is_preview.in=>[false,nil], :is_hot => true).can_display.is_approved.desc(:postdate).limit(1)
|
||||
hot_news = hot_news.first
|
||||
categories.each_with_index do |category,index|
|
||||
if hot_news.nil?
|
||||
|
|
Loading…
Reference in New Issue