fixed classname bug for status
This commit is contained in:
parent
34328e8aaf
commit
4d28a18804
|
@ -2,12 +2,12 @@ class FaqsController < ApplicationController
|
||||||
def index
|
def index
|
||||||
faqs = Qa.can_display.order_by(:created_at=>'desc').filter_by_categories
|
faqs = Qa.can_display.order_by(:created_at=>'desc').filter_by_categories
|
||||||
f = faqs.collect do |qa|
|
f = faqs.collect do |qa|
|
||||||
statuses = qa.statuses.collect do |status|
|
statuses = qa.statuses_with_classname.collect do |status|
|
||||||
{
|
{
|
||||||
"status" => status,
|
"status" => status["name"],
|
||||||
"status-class" => "status-#{status.downcase}"
|
"status-class" => "status-#{status['classname']}"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"link_to_show" => OrbitHelper.url_to_show(qa.to_param),
|
"link_to_show" => OrbitHelper.url_to_show(qa.to_param),
|
||||||
"question" => qa.title,
|
"question" => qa.title,
|
||||||
|
|
Loading…
Reference in New Issue