5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 19:56:21 +00:00

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

This commit is contained in:
maki 2024-04-19 14:39:09 -03:00
parent 3336c2d5b6
commit 5a92c1f28c
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -1,4 +1,5 @@
.form-group .form-group
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
- if metadata.static_file - if metadata.static_file
= image_tag url_for(metadata.static_file), = image_tag url_for(metadata.static_file),
alt: metadata.value['description'], alt: metadata.value['description'],