working links for widget items

This commit is contained in:
Harry Bomrah 2014-05-24 19:38:25 +08:00
parent f414473897
commit db67704a88
1 changed files with 2 additions and 5 deletions

View File

@ -44,13 +44,13 @@ class GalleriesController < ApplicationController
end end
images = images.collect do |a| 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 "thumb-src" => a.file.thumb.url
} }
end end
{ {
"images" => images, "images" => images,
"extras" => {"widget-title"=>"Gallery"} "extras" => {"widget-title"=>"Gallery","more_url" => OrbitHelper.widget_more_url}
} }
end end
@ -67,7 +67,4 @@ class GalleriesController < ApplicationController
"back_to_albums" => OrbitHelper.url_to_show(album.to_param) "back_to_albums" => OrbitHelper.url_to_show(album.to_param)
} }
end end
end end