mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-23 15:41:51 +00:00
fix: solo mostrar el permalink cuando ya se puede generar uno
This commit is contained in:
parent
9b3dd9b2f6
commit
b32c67f168
1 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,8 @@
|
|||
.form-group
|
||||
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
||||
= text_field base, attribute, value: metadata.value,
|
||||
dir: dir, lang: locale,
|
||||
**field_options(attribute, metadata)
|
||||
= render 'posts/attribute_feedback',
|
||||
post: post, attribute: attribute, metadata: metadata
|
||||
- if post.written?
|
||||
.form-group
|
||||
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
||||
= text_field base, attribute, value: metadata.value,
|
||||
dir: dir, lang: locale,
|
||||
**field_options(attribute, metadata)
|
||||
= render 'posts/attribute_feedback',
|
||||
post: post, attribute: attribute, metadata: metadata
|
||||
|
|
Loading…
Reference in a new issue