From 7127cd2fcb8481cc5dfb1a27eb1172f2d0b003f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 4 Aug 2024 03:00:35 +0800 Subject: [PATCH] Add album_name variable. --- app/views/admin/galleries/_album.html.erb | 2 +- app/views/admin/galleries/_albums.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/galleries/_album.html.erb b/app/views/admin/galleries/_album.html.erb index 3b98d03..9476a65 100644 --- a/app/views/admin/galleries/_album.html.erb +++ b/app/views/admin/galleries/_album.html.erb @@ -1,6 +1,6 @@
  • - +
    <% if album.cover == "default" %> diff --git a/app/views/admin/galleries/_albums.html.erb b/app/views/admin/galleries/_albums.html.erb index afb68e7..e99d4ba 100644 --- a/app/views/admin/galleries/_albums.html.erb +++ b/app/views/admin/galleries/_albums.html.erb @@ -1,4 +1,4 @@ -<%= render :partial => "album", :collection => @albums %> +<%= render :partial => "album", :collection => @albums, locals: {album_name: 'album_id'} %>