update title language show
This commit is contained in:
parent
cf4e736e68
commit
c25a3d3e92
|
@ -1,7 +1,7 @@
|
||||||
class WebResourcesController < ApplicationController
|
class WebResourcesController < ApplicationController
|
||||||
|
|
||||||
def index
|
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|
|
web_link = links.collect do |link|
|
||||||
statuses = link.statuses_with_classname.collect do |status|
|
statuses = link.statuses_with_classname.collect do |status|
|
||||||
{
|
{
|
||||||
|
@ -22,11 +22,11 @@ class WebResourcesController < ApplicationController
|
||||||
"widget-title"=>t(:web_resource)
|
"widget-title"=>t(:web_resource)
|
||||||
},
|
},
|
||||||
"total_pages" => links.total_pages
|
"total_pages" => links.total_pages
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def widget
|
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|
|
web_link = links.collect do |link|
|
||||||
statuses = link.statuses_with_classname.collect do |status|
|
statuses = link.statuses_with_classname.collect do |status|
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ class WebResourcesController < ApplicationController
|
||||||
{
|
{
|
||||||
"web_link" => web_link,
|
"web_link" => web_link,
|
||||||
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
|
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue