editpage: Don't show attachments link when attachments are disabled.

master
Joey Hess 2008-07-21 12:15:55 -04:00
parent 3f1a81c8e5
commit 3da279ddd4
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View 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

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