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 6ef9650b96b35292d558c1c8a82e5fb9899c0938..0c55d4afab7f164712fd4e7bfad7fe2b80a63201 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 efe077f84ad07dfc3eee8403333a7137e57de1db..27c4aa6ed25ebdcc690ad2d7aab7fffb8e934e83 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>