5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-03 09:47:04 +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
= 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,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'],