web/views/idownloadable.py
branchstable
changeset 3846 1a7d10864628
parent 3789 fb22b55f80f8
child 3890 d7a270f50f54
child 4212 ab6573088b4a
--- a/web/views/idownloadable.py	Fri Nov 13 14:24:29 2009 +0100
+++ b/web/views/idownloadable.py	Fri Nov 13 14:24:47 2009 +0100
@@ -25,7 +25,7 @@
         return 0
     return 1
 
-def download_box(w, entity, title=None, label=None):
+def download_box(w, entity, title=None, label=None, footer=u''):
     req = entity.req
     w(u'<div class="sideBox">')
     if title is None:
@@ -37,8 +37,8 @@
       % (xml_escape(entity.download_url()),
          req.external_resource('DOWNLOAD_ICON'),
          _('download icon'), xml_escape(label or entity.dc_title())))
-    w(u'</div>')
-    w(u'</div>\n</div>\n')
+    w(u'%s</div>' % footer)
+    w(u'</div></div>\n')
 
 
 class DownloadBox(EntityBoxTemplate):