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