working links for widget items
This commit is contained in:
parent
f97ccb0436
commit
7ec66cb663
|
@ -37,14 +37,14 @@ class FaqsController < ApplicationController
|
|||
def widget
|
||||
faqs = Qa.filter_by_widget_categories.collect do |qa|
|
||||
{
|
||||
"link_to_show" => OrbitHelper.url_to_show(qa.to_param),
|
||||
"link_to_show" => OrbitHelper.widget_item_url(qa.to_param),
|
||||
"title" => qa.title,
|
||||
"postdate" => qa.created_at.strftime('%Y-%m-%d %H:%M')
|
||||
}
|
||||
end
|
||||
{
|
||||
"faqs" => faqs,
|
||||
"extras" => {"widget-title"=>"Faqs"}
|
||||
"extras" => {"widget-title"=>"Faqs","more_url"=>OrbitHelper.widget_more_url}
|
||||
}
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue