[Buildbot-devel] [PATCH 07/11] Add links to the builders on the `Latest Build' page.
Benoit Sigoure
tsuna at lrde.epita.fr
Fri Nov 16 17:12:57 UTC 2007
* status/web/baseweb.py (OneBoxPerBuilder.body): Here.
Signed-off-by: Benoit Sigoure <tsuna at lrde.epita.fr>
---
buildbot/status/web/baseweb.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/buildbot/status/web/baseweb.py b/buildbot/status/web/baseweb.py
index aa9551b..1c5453a 100644
--- a/buildbot/status/web/baseweb.py
+++ b/buildbot/status/web/baseweb.py
@@ -193,18 +193,18 @@ class OneBoxPerBuilder(HtmlResource):
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:
--
1.5.3.5.654.gdd5ec
More information about the devel
mailing list