From db67704a881626bdf8835532bdaa212466b8f167 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Sat, 24 May 2014 19:38:25 +0800 Subject: [PATCH] working links for widget items --- app/controllers/galleries_controller.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 4226d35..c5f4d15 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -44,13 +44,13 @@ class GalleriesController < ApplicationController end images = images.collect do |a| { - "link_to_show" => "/" + I18n.locale.to_s + params[:url] + "/-" + a.id.to_s + "?method=theater", + "link_to_show" => OrbitHelper.widget_more_url + "/-" + a.id.to_s + "?method=theater", "thumb-src" => a.file.thumb.url } end { "images" => images, - "extras" => {"widget-title"=>"Gallery"} + "extras" => {"widget-title"=>"Gallery","more_url" => OrbitHelper.widget_more_url} } end @@ -67,7 +67,4 @@ class GalleriesController < ApplicationController "back_to_albums" => OrbitHelper.url_to_show(album.to_param) } end - - - end \ No newline at end of file