add album-name for front-end widget

This commit is contained in:
EricTYL 2019-11-05 14:53:13 +08:00
parent 809a9fa3b9
commit ceda58f6da
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ class GalleriesController < ApplicationController
"thumb-large-src" => a.file.thumb_large.url, "thumb-large-src" => a.file.thumb_large.url,
"image_description" => a.description, "image_description" => a.description,
"mobile-src" => a.file.mobile.url, "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 end
{ {