diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index a2d8810..6746b57 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -3,6 +3,7 @@ class GalleriesController < ApplicationController albums = Album.filter_by_categories.collect do |a| { "album-name" => a.name, + "album-description" => a.description, "link_to_show" => OrbitHelper.url_to_show(a.to_param), "thumb-src" => a.cover_path || "/assets/gallery/default.jpg" } @@ -19,6 +20,7 @@ class GalleriesController < ApplicationController album = Album.find_by_param(params[:uid]) images = album.album_images.collect do |a| { + "image-description" => a.description, "link_to_show" => "/" + I18n.locale.to_s + params[:url] + "/-" + a.id.to_s + "?method=theater", "thumb-src" => a.file.thumb.url }