update title language show

This commit is contained in:
JiangRu 2014-12-01 14:28:46 +08:00
parent cf4e736e68
commit c25a3d3e92
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
class WebResourcesController < ApplicationController
def index
links = WebLink.can_display.filter_by_categories
links = WebLink.where(:title.ne => "").can_display.filter_by_categories
web_link = links.collect do |link|
statuses = link.statuses_with_classname.collect do |status|
{
@ -26,7 +26,7 @@ class WebResourcesController < ApplicationController
end
def widget
links = WebLink.can_display.filter_by_widget_categories
links = WebLink.where(:title.ne => "").can_display.filter_by_widget_categories
web_link = links.collect do |link|
statuses = link.statuses_with_classname.collect do |status|
{