Display attachment manipulation links always, since attachments can be uploaded via...
authorJoey Hess <joey@kitenet.net>
Tue, 12 Jul 2011 01:38:48 +0000 (21:38 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 12 Jul 2011 01:38:48 +0000 (21:38 -0400)
Could arrange for them to be in a span that is hidden when there are no
attachments and make the javascript upload unhide it; this is a quick fix.

debian/changelog
templates/editpage.tmpl

index 6ef9650..0c55d4a 100644 (file)
@@ -2,6 +2,8 @@ ikiwiki (3.20110712) UNRELEASED; urgency=low
 
   * attachment: Bugfix to create directory when moving attachment out of 
     holding area.
+  * Display attachment manipulation links always, since attachments can be
+    uploaded via javascript.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 11 Jul 2011 21:35:20 -0400
 
index efe077f..27c4aa6 100644 (file)
@@ -62,9 +62,7 @@ $(function () { $('#fileupload').fileupload(); }); // initialize upload widget
 </div>
 <TMPL_VAR FIELD-ATTACHMENT>
 <noscript><TMPL_VAR FIELD-UPLOAD></noscript>
-<TMPL_IF NAME="ATTACHMENT_LIST">
 <TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-RENAME><TMPL_VAR FIELD-REMOVE>
-</TMPL_IF>
 </div> 
 </div>
 </TMPL_IF>