From 0b1bfa64e09600d2f95c32fc05323fa8c2f80c18 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 3 Feb 2024 10:13:36 +1100 Subject: [PATCH] Further admin cleanup --- slices/admin/templates/photos/index.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slices/admin/templates/photos/index.html.slim b/slices/admin/templates/photos/index.html.slim index b1ca3cf..cbf7b10 100644 --- a/slices/admin/templates/photos/index.html.slim +++ b/slices/admin/templates/photos/index.html.slim @@ -14,7 +14,7 @@ div class="mb-4 max-w-prose mx-auto prose dark:prose-invert" - photos.each_with_index do |photo, idx| - if photo.match(/.mp3/) div class="rounded max-w-xs" x-data="" id="photo-#{idx}" - div class="h-48 w-48 mb-2" + div class="h-48 w-48 mb-2 mt-8" audio class="w-48" controls="" src="/#{photo.gsub("public/", "")}" div class="grid grid-cols-2 gap-2" button class="hover:text-blue-400 p-1 bg-blue-100 rounded text-blue-600 no-underline" @click="$clipboard('#{Hanami.app.settings.micropub_site_url}/#{photo.gsub("public/", "")}')" Copy URL