From 7ec3e69ec7df2df262c902a3baa957e6be7c69b7 Mon Sep 17 00:00:00 2001 From: maki Date: Fri, 3 May 2024 14:06:32 -0300 Subject: [PATCH 1/2] 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'], From 581fea57959025618ed4711af70e8be108177a21 Mon Sep 17 00:00:00 2001 From: maki Date: Fri, 10 May 2024 12:02:48 -0300 Subject: [PATCH 2/2] fix: translation missing para label de audio #16080 --- config/locales/en.yml | 2 ++ config/locales/es.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index 3a22a41b..7ac7291d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -553,6 +553,8 @@ en: image: label: Image destroy: Remove image + audio: + label: Audio file logo: label: Logo download: diff --git a/config/locales/es.yml b/config/locales/es.yml index 1828b001..0d04bf5d 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -563,6 +563,8 @@ es: destroy: 'Eliminar imagen' logo: label: Logo + audio: + label: Audio download: label: Archivo belongs_to: