5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-03-14 22:38:20 +00:00

Merge branch 'issue-16080' into 'rails'

fix: campos de archivo e imagen con título #16080

See merge request sutty/sutty!257
This commit is contained in:
Maki 2024-05-02 18:54:59 +00:00
commit 8ef3d16340
4 changed files with 12 additions and 0 deletions

View file

@ -1,4 +1,6 @@
.form-group
.label
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
- if metadata.static_file
- case metadata.static_file.blob.content_type
- when %r{\Avideo/}

View file

@ -1,4 +1,6 @@
.form-group
.label
= 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'],

View file

@ -679,6 +679,10 @@ en:
image:
label: Image
destroy: Remove image
logo:
label: Logo
download:
label: Archivo
belongs_to:
empty: "(Empty)"
predefined_value:

View file

@ -690,6 +690,10 @@ es:
image:
label: Imagen
destroy: 'Eliminar imagen'
logo:
label: Logo
download:
label: Archivo
belongs_to:
empty: "(Vacío)"
predefined_value: