From 7ec3e69ec7df2df262c902a3baa957e6be7c69b7 Mon Sep 17 00:00:00 2001 From: maki Date: Fri, 3 May 2024 14:06:32 -0300 Subject: [PATCH] div al pedo #16080 --- app/views/posts/attributes/_file.haml | 4 ++-- app/views/posts/attributes/_image.haml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/posts/attributes/_file.haml b/app/views/posts/attributes/_file.haml index 6906e159..31765069 100644 --- a/app/views/posts/attributes/_file.haml +++ b/app/views/posts/attributes/_file.haml @@ -1,6 +1,6 @@ .form-group - .label - = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) + + = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) - if metadata.static_file - case metadata.static_file.blob.content_type - when %r{\Avideo/} diff --git a/app/views/posts/attributes/_image.haml b/app/views/posts/attributes/_image.haml index 2579dfeb..74388e90 100644 --- a/app/views/posts/attributes/_image.haml +++ b/app/views/posts/attributes/_image.haml @@ -1,6 +1,6 @@ .form-group - .label - = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) + + = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) - if metadata.static_file = image_tag url_for(metadata.static_file), alt: metadata.value['description'],