mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 17:26:22 +00:00
fix: campos de archivo e imagen con título #16080
This commit is contained in:
parent
3336c2d5b6
commit
5a92c1f28c
2 changed files with 2 additions and 0 deletions
|
@ -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/}
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue