mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 23:23:38 +00:00
bugs
This commit is contained in:
parent
6dd7b2a85f
commit
56ad911dc1
2 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ class Post
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_box_group?
|
def check_box_group?
|
||||||
array? && contents.fetch('checkbox', false)
|
array? && (complex? && contents.fetch('checkbox', false))
|
||||||
end
|
end
|
||||||
|
|
||||||
def array?
|
def array?
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
- else
|
- else
|
||||||
- url = site_post_path(@site, @post, lang: @lang)
|
- url = site_post_path(@site, @post, lang: @lang)
|
||||||
- method = :patch
|
- method = :patch
|
||||||
- if pre = @post.template.get_front_matter('pre')
|
- if pre = @post.template.try(:get_front_matter, 'pre')
|
||||||
= render 'layouts/help', help: CommonMarker.render_doc(pre).to_html
|
= render 'layouts/help', help: CommonMarker.render_doc(pre).to_html
|
||||||
= form_tag url,
|
= form_tag url,
|
||||||
method: method,
|
method: method,
|
||||||
|
@ -136,5 +136,5 @@
|
||||||
= submit_tag t('posts.save_incomplete'), class: 'btn btn-info submit-post-incomplete', name: 'commit_incomplete'
|
= submit_tag t('posts.save_incomplete'), class: 'btn btn-info submit-post-incomplete', name: 'commit_incomplete'
|
||||||
.invalid_help.alert.alert-danger.d-none= @site.config.dig('invalid_help') || t('posts.invalid_help')
|
.invalid_help.alert.alert-danger.d-none= @site.config.dig('invalid_help') || t('posts.invalid_help')
|
||||||
.sending_help.alert.alert-success.d-none= @site.config.dig('sending_help') || t('posts.sending_help')
|
.sending_help.alert.alert-success.d-none= @site.config.dig('sending_help') || t('posts.sending_help')
|
||||||
- if post = @post.template.get_front_matter('post')
|
- if post = @post.template.try(:get_front_matter, 'post')
|
||||||
= render 'layouts/help', help: CommonMarker.render_doc(post).to_html
|
= render 'layouts/help', help: CommonMarker.render_doc(post).to_html
|
||||||
|
|
Loading…
Reference in a new issue