diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-19 21:31:11 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-19 21:31:11 +0000 |
commit | 1d82816082b2a3dee97a1812410962a41f1b6e79 (patch) | |
tree | d90b29163cf7950871aa276847091e7c36d6b52d | |
parent | c47d165a33c9e131c728c57b4322c52af66f103d (diff) |
link to helponformatting from the edit page
-rwxr-xr-x | ikiwiki | 2 | ||||
-rw-r--r-- | templates/editpage.tmpl | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1089,6 +1089,8 @@ sub cgi_editpage ($$) { #{{{ cols => 80); $form->tmpl_param("can_commit", $config{svn}); $form->tmpl_param("indexlink", indexlink()); + $form->tmpl_param("helponformattinglink", + htmllink("HelpOnFormatting", pagename($1), 1)); if (! $form->submitted) { $form->field(name => "rcsinfo", value => rcs_prepedit($file), force => 1); diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl index 6ab988261..c1e7113b4 100644 --- a/templates/editpage.tmpl +++ b/templates/editpage.tmpl @@ -27,10 +27,12 @@ Optional comment about this change:</br> </TMPL_IF> <TMPL_VAR FORM-SUBMIT> <TMPL_VAR FORM-END> -<TMPL_IF NAME="PAGE_PREVIEW"> <hr> +<TMPL_IF NAME="PAGE_PREVIEW"> <h1>Page preview:</h1> <TMPL_VAR PAGE_PREVIEW> +<TMPL_ELSE> +<TMPL_VAR HELPONFORMATTINGLINK> </TMPL_IF> </body> </html> |