smcvpostcomment: indicate in form whether HTML and directives are allowed
parent
1bd1b03766
commit
d18adfb1ad
|
@ -171,7 +171,9 @@ sub sessioncgi ($$) { #{{{
|
|||
$form->tmpl_param('helponformattinglink',
|
||||
htmllink($page, $page, 'ikiwiki/formatting',
|
||||
noimageinline => 1,
|
||||
linktext => 'FormattingHelp'));
|
||||
linktext => 'FormattingHelp'),
|
||||
allowhtml => $allow_html,
|
||||
allowdirectives => $allow_directives);
|
||||
|
||||
if (not exists $pagesources{$page}) {
|
||||
error(sprintf(gettext(
|
||||
|
|
|
@ -6,8 +6,10 @@
|
|||
Subject: <TMPL_VAR FIELD-SUBJECT><br />
|
||||
<TMPL_VAR FIELD-BODY><br />
|
||||
<TMPL_VAR FORM-SUBMIT><br />
|
||||
<TMPL_VAR HELPONFORMATTINGLINK>
|
||||
<TMPL_VAR FORM-END>
|
||||
<TMPL_VAR HELPONFORMATTINGLINK><br />
|
||||
HTML is <TMPL_UNLESS NAME="ALLOWHTML">not </TMPL_UNLESS>allowed.<br />
|
||||
IkiWiki directives ([[!directive]]) are <TMPL_UNLESS NAME="ALLOWDIRECTIVES">not </TMPL_UNLESS>allowed.<br />
|
||||
<TMPL_VAR NAME="FORM-END">
|
||||
|
||||
<TMPL_IF NAME="PAGE_PREVIEW">
|
||||
<hr />
|
||||
|
|
Loading…
Reference in New Issue