fixed classname bugs for statuses
This commit is contained in:
parent
7f58aba75e
commit
9ca5c3b037
|
@ -3,10 +3,10 @@ class WebResourcesController < ApplicationController
|
|||
def index
|
||||
links = WebLink.can_display.filter_by_categories
|
||||
web_link = links.collect do |link|
|
||||
statuses = link.statuses.collect do |status|
|
||||
statuses = link.statuses_with_classname.collect do |status|
|
||||
{
|
||||
"status" => status,
|
||||
"status-class" => "status-#{status.downcase}"
|
||||
"status" => status["name"],
|
||||
"status-class" => "status-#{status['classname']}"
|
||||
}
|
||||
end
|
||||
{
|
||||
|
@ -25,10 +25,10 @@ class WebResourcesController < ApplicationController
|
|||
def widget
|
||||
links = WebLink.can_display.filter_by_widget_categories
|
||||
web_link = links.collect do |link|
|
||||
statuses = link.statuses.collect do |status|
|
||||
statuses = link.statuses_with_classname.collect do |status|
|
||||
{
|
||||
"status" => status,
|
||||
"status-class" => "status-#{status.downcase}"
|
||||
"status" => status["name"],
|
||||
"status-class" => "status-#{status['classname']}"
|
||||
}
|
||||
end
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue