From ceda58f6dac5cd75be3a046b2ca926dbf1ba7aa6 Mon Sep 17 00:00:00 2001 From: Eric Tsai Date: Tue, 5 Nov 2019 14:53:13 +0800 Subject: [PATCH] add album-name for front-end widget --- app/controllers/galleries_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index d8bf4e5..6da5fc0 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -93,7 +93,8 @@ class GalleriesController < ApplicationController "thumb-large-src" => a.file.thumb_large.url, "image_description" => a.description, "mobile-src" => a.file.mobile.url, - "theater-src" => a.file.theater.url + "theater-src" => a.file.theater.url, + "album-name" => a.album.name_translations[I18n.locale] } end {