link to helponformatting from the edit page

master
joey 2006-03-19 21:31:11 +00:00
parent c47d165a33
commit 1d82816082
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View 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>