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|
{
@ -22,11 +22,11 @@ class WebResourcesController < ApplicationController
"widget-title"=>t(:web_resource)
},
"total_pages" => links.total_pages
}
}
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|
{
@ -44,7 +44,7 @@ class WebResourcesController < ApplicationController
{
"web_link" => web_link,
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
}
}
end
end