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