From 5a92c1f28c0eb9aa402e7bd74523d399908111f5 Mon Sep 17 00:00:00 2001 From: maki Date: Fri, 19 Apr 2024 14:39:09 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20campos=20de=20archivo=20e=20imagen=20con?= =?UTF-8?q?=20t=C3=ADtulo=20#16080?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/attributes/_file.haml | 1 + app/views/posts/attributes/_image.haml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/posts/attributes/_file.haml b/app/views/posts/attributes/_file.haml index 54f9f81a..84cbcd9a 100644 --- a/app/views/posts/attributes/_file.haml +++ b/app/views/posts/attributes/_file.haml @@ -1,4 +1,5 @@ .form-group + = 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 84fe56fd..79f451a3 100644 --- a/app/views/posts/attributes/_image.haml +++ b/app/views/posts/attributes/_image.haml @@ -1,4 +1,5 @@ .form-group + = 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'],