mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 04:16:21 +00:00
fix: separar label de preview #16080
This commit is contained in:
parent
ca683ee369
commit
92e7ecada0
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
.form-group
|
||||
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
||||
.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/}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
.form-group
|
||||
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
||||
.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'],
|
||||
|
|
Loading…
Reference in a new issue