From b2e6cf39193bbd95c2fc6a5357d9c5d93889f274 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Sat, 24 May 2014 19:37:07 +0800 Subject: [PATCH] working links for widget items --- app/controllers/archives_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index a9332c4..e0deeb7 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -67,7 +67,8 @@ class ArchivesController < ApplicationController cats = @categories.collect do |cat| 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 { @@ -77,7 +78,7 @@ class ArchivesController < ApplicationController end { "categories" => cats, - "extras" => {"widget-title" => "Archives"} + "extras" => {"widget-title" => "Archives","more_url"=>OrbitHelper.widget_more_url} } end end \ No newline at end of file