[Buildbot-commits] buildbot/buildbot/status/web baseweb.py, 1.32, 1.33
Brian Warner
warner at users.sourceforge.net
Wed Nov 21 09:25:05 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20344/buildbot/status/web
Modified Files:
baseweb.py
Log Message:
[project @ OneBoxPerBuilder: add links to the per-Builder page]
Original author: warner at lothar.com
Date: 2007-11-21 09:14:24+00:00
Index: baseweb.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/baseweb.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- baseweb.py 21 Nov 2007 09:24:18 -0000 1.32
+++ baseweb.py 21 Nov 2007 09:25:03 -0000 1.33
@@ -193,18 +193,18 @@
building = False
online = 0
+ base_builders_url = self.path_to_root(req) + "builders/"
for bn in builders:
+ base_builder_url = base_builders_url + urllib.quote(bn, safe='')
builder = status.getBuilder(bn)
data += "<tr>\n"
- data += '<td class="box">%s</td>\n' % html.escape(bn)
+ data += '<td class="box"><a href="%s">%s</a></td>\n' \
+ % (base_builder_url, html.escape(bn))
builds = list(builder.generateFinishedBuilds(map_branches(branches),
num_builds=1))
if builds:
b = builds[0]
- url = (self.path_to_root(req) +
- "builders/" +
- urllib.quote(bn, safe='') +
- "/builds/%d" % b.getNumber())
+ url = (base_builder_url + "/builds/%d" % b.getNumber())
try:
label = b.getProperty("got_revision")
except KeyError:
More information about the Commits
mailing list