working links for widget items
This commit is contained in:
parent
81abc73163
commit
0b43ae8303
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue