Switch to side-by-side view
--- a/Allura/allura/lib/widgets/macros.py +++ b/Allura/allura/lib/widgets/macros.py @@ -7,3 +7,13 @@ attrs = { 'style':'width:270px;float:right;background-color:#ccc' } + +class DownloadButton(ew.Widget): + template='jinja:allura:templates/widgets/download_button.html' + params=['project'] + project=None + + def resources(self): + yield ew.jinja2_ew.JSScript(''' + $(function(){$("div.download-button-%s").load("%s"); + });''' % (self.project.shortname,self.project.best_download_url()))