From c6bb414b57a2ae8c6927826b143027f5c43dada9 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 10 Jan 2025 18:22:23 -0500 Subject: Made uploading videos work --- app/views/admin/blogs/_form.html.haml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/views/admin') diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index f64ebe5..323d499 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml @@ -42,9 +42,13 @@ .details-module.image-uploads %h4 Images - f.object.images.each do |image| - = image_tag image.variant(:thumb) - = f.hidden_field :images, multiple: true, value: image.signed_id - %pre= rails_blob_url(image) + - if image.representable? + = image_tag image.variant(:thumb) + - else + = image.filename.to_s + - unless image.new_record? + = f.hidden_field :images, multiple: true, value: image.signed_id + %pre= rails_blob_url(image) %hr = f.file_field :images, multiple: true .details-module= f.submit -- cgit 1.4.1