working links for widget items

This commit is contained in:
Harry Bomrah 2014-05-24 19:36:23 +08:00
parent 81abc73163
commit 0b43ae8303
1 changed files with 2 additions and 2 deletions

View File

@ -26,13 +26,13 @@ class AnnouncementsController < ApplicationController
"title" => a.title, "title" => a.title,
"subtitle" => a.subtitle, "subtitle" => a.subtitle,
"postdate" => a.postdate.strftime("%b %d, %Y at %I:%M %p"), "postdate" => a.postdate.strftime("%b %d, %Y at %I:%M %p"),
"link_to_show" => OrbitHelper.url_to_show(a.to_param), "link_to_show" => OrbitHelper.widget_item_url(a.to_param),
"img_src" => a.image.thumb.url || "http://placehold.it/100x100", "img_src" => a.image.thumb.url || "http://placehold.it/100x100",
} }
end end
{ {
"announcements" => anns, "announcements" => anns,
"extras" => {"widget-title"=>"Announcements"} "extras" => {"widget-title"=>"Announcements","more_url"=>OrbitHelper.widget_more_url}
} }
end end