summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-19 21:31:11 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-19 21:31:11 +0000
commit1d82816082b2a3dee97a1812410962a41f1b6e79 (patch)
treed90b29163cf7950871aa276847091e7c36d6b52d
parentc47d165a33c9e131c728c57b4322c52af66f103d (diff)
link to helponformatting from the edit page
-rwxr-xr-xikiwiki2
-rw-r--r--templates/editpage.tmpl4
2 files changed, 5 insertions, 1 deletions
diff --git a/ikiwiki b/ikiwiki
index 14c50a9af..c7b5468b4 100755
--- 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);
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>