working links for widget items

This commit is contained in:
Harry Bomrah 2014-05-24 19:37:07 +08:00
parent 1c7a27bfe4
commit b2e6cf3919
1 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,8 @@ class ArchivesController < ApplicationController
cats = @categories.collect do |cat| cats = @categories.collect do |cat|
archives = ArchiveFile.where(:category_id => cat["id"]).collect do |archive| archives = ArchiveFile.where(:category_id => cat["id"]).collect do |archive|
{ {
"archive-title" => archive.title "archive-title" => archive.title,
"archive_url" => OrbitHelper.widget_more_url
} }
end end
{ {
@ -77,7 +78,7 @@ class ArchivesController < ApplicationController
end end
{ {
"categories" => cats, "categories" => cats,
"extras" => {"widget-title" => "Archives"} "extras" => {"widget-title" => "Archives","more_url"=>OrbitHelper.widget_more_url}
} }
end end
end end