Skip to content

Commit

Permalink
waterfall: pass url for TopBox objects
Browse files Browse the repository at this point in the history
(reverts part of e6cfbda)
  • Loading branch information
zanchey committed Dec 13, 2010
1 parent 27bc31f commit 50e9178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/buildbot/status/web/waterfall.py
Expand Up @@ -130,13 +130,13 @@ def getBox(self, req):
if not builds:
return Box(["none"], class_="LastBuild")
b = builds[0]
url = path_to_build(req, b)
text = b.getText()
tests_failed = b.getSummaryStatistic('tests-failed', operator.add, 0)
if tests_failed: text.extend(["Failed tests: %d" % tests_failed])
# TODO: maybe add logs?
# TODO: add link to the per-build page at 'url'
class_ = build_get_class(b)
return Box(text, class_="LastBuild %s" % class_)
return Box(text, urlbase=url, class_="LastBuild %s" % class_)
components.registerAdapter(BuildTopBox, builder.BuilderStatus, ITopBox)

class BuildBox(components.Adapter):
Expand Down

0 comments on commit 50e9178

Please sign in to comment.