diff bitten/trac_ext/web_ui.py @ 256:aa942e2c7243

A bit of polishing for [265]: also show build if not yet in the queue, some layout improvements.
author cmlenz
date Wed, 05 Oct 2005 18:26:25 +0000
parents 42f555e1d648
children 77cdef044d48
line wrap: on
line diff
--- a/bitten/trac_ext/web_ui.py
+++ b/bitten/trac_ext/web_ui.py
@@ -365,7 +365,12 @@
                     prev_rev = rev
                 if build:
                     build_hdf = _build_to_hdf(self.env, req, build)
-                    req.hdf[prefix + '.builds.%s' % platform.name] = build_hdf
+                    build_hdf['platform'] = escape(platform.name)
+                    req.hdf[prefix + '.builds.%d' % platform.id] = build_hdf
+                else:
+                    req.hdf[prefix + '.builds.%d' % platform.id] = {
+                        'platform': escape(platform.name), 'status': 'pending'
+                    }
 
         req.hdf['page.mode'] = 'overview'
         req.hdf['config.can_create'] = req.perm.has_permission('BUILD_CREATE')
Copyright (C) 2012-2017 Edgewall Software