editpage: Don't show attachments link when attachments are disabled.
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 21 Jul 2008 16:15:55 +0000 (12:15 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 21 Jul 2008 16:15:55 +0000 (12:15 -0400)
debian/changelog
templates/editpage.tmpl

index 6d74174889b88f302ec6c5bab6bcea984128e100..78a7af0012a002d06a35f839548f39f49344762c 100644 (file)
@@ -2,6 +2,7 @@ ikiwiki (2.55) UNRELEASED; urgency=low
 
   * prefix_directives enabled in doc wiki, all preprocessor directives
     converted. (Simon McVittie)
+  * editpage: Don't show attachments link when attachments are disabled.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 21 Jul 2008 11:35:46 -0400
 
index 7f6c2a97a4521ac747a793862390c0065aec057a..9875318039190cd955dd9bcba6b4366cd7804ba5 100644 (file)
@@ -62,8 +62,8 @@ Optional comment about this change:<br />
 </TMPL_IF>
 <TMPL_VAR FORM-SUBMIT>
 <TMPL_VAR HELPONFORMATTINGLINK>
-<a class="toggle" href="#attachments">Attachments</a>
 <TMPL_IF NAME="FIELD-ATTACHMENT">
+<a class="toggle" href="#attachments">Attachments</a>
 <div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments">
 <table>
 <tr><td colspan="5"><TMPL_VAR FIELD-ATTACHMENT><TMPL_VAR FIELD-UPLOAD></td></tr>