new argument to provide extra content stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 13 Nov 2009 14:24:47 +0100
branchstable
changeset 3846 1a7d10864628
parent 3845 596044fb7bc5
child 3847 7cf2b338a8e7
child 3848 adc706f312a2
new argument to provide extra content
web/views/idownloadable.py
--- 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):