1
0
Fork 0

New posts start in private status

* tekuti/page-helpers.scm (post-editing-form): Fix status of new posts.
This commit is contained in:
Andy Wingo 2014-12-17 11:19:49 +01:00
parent acc13819e1
commit cf10aa7056

View file

@ -193,7 +193,7 @@
'())))
"private (only visible to admin)") (br)
(label (input (@ (type "radio") (name "status") (value "draft")
,@(if (or (not post) (post-draft? post))
,@(if (and post (post-draft? post))
'((checked "checked"))
'())))
"draft (only accessible via "
@ -205,7 +205,7 @@
(br)
(label (input (@ (type "radio") (name "status") (value "publish")
,@(if (or (not post) (post-public? post))
,@(if (and post (post-public? post))
'((checked "checked"))
'())))
"public"))