link to helponformatting from the edit page
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 19 Mar 2006 21:31:11 +0000 (21:31 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 19 Mar 2006 21:31:11 +0000 (21:31 +0000)
ikiwiki
templates/editpage.tmpl

diff --git a/ikiwiki b/ikiwiki
index 14c50a9afa3bb05ecdba44d307ccc3d740b10671..c7b5468b447256c033151153f1738937fd3faf2f 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -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);
index 6ab9882618d2c843bb462b8b4618c06dd5ee513c..c1e7113b4b45c2e5d9ad4374b363b87058a9443b 100644 (file)
@@ -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>