From 0b43ae8303b0bc00c3e1b7fc01558132baa4833f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Sat, 24 May 2014 19:36:23 +0800 Subject: [PATCH] working links for widget items --- app/controllers/announcements_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 3ea825a..a23bf6d 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -26,13 +26,13 @@ class AnnouncementsController < ApplicationController "title" => a.title, "subtitle" => a.subtitle, "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", } end { "announcements" => anns, - "extras" => {"widget-title"=>"Announcements"} + "extras" => {"widget-title"=>"Announcements","more_url"=>OrbitHelper.widget_more_url} } end