From f48ae3228ceb0a1c1ff46779b2b14c44cb7dbb87 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 9 Jun 2014 17:56:14 +0800 Subject: [PATCH] added description for images and albums --- app/controllers/galleries_controller.rb | 2 ++ 1 file changed, 2 insertions(+) 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 }