diff --git a/master/buildbot/status/web/templates/box_macros.html b/master/buildbot/status/web/templates/box_macros.html
index 849842f..2446f64 100644
|
a
|
b
|
|
| 16 | 16 | |
| 17 | 17 | {# this is currently just the text part of the boxes #} |
| 18 | 18 | |
| 19 | | {% macro build_box(reason, url, number) -%} |
| | 19 | {% macro build_box(reason, url, number, ss) -%} |
| 20 | 20 | <a title="Reason: {{ reason|e }}" href="{{ url }}">Build {{ number }}</a> |
| | 21 | {%- if ss.revision %} |
| | 22 | <br>{{ ss.revision|shortrev(ss.repository) }} |
| | 23 | {%- endif %} |
| 21 | 24 | {%- endmacro %} |
| 22 | 25 | |
| 23 | 26 | {% macro step_box(text, logs, urls) -%} |
diff --git a/master/buildbot/status/web/waterfall.py b/master/buildbot/status/web/waterfall.py
index 0e898e3..6a2cc62 100644
|
a
|
b
|
class BuildBox(components.Adapter): |
| 147 | 147 | def getBox(self, req): |
| 148 | 148 | b = self.original |
| 149 | 149 | number = b.getNumber() |
| | 150 | ss = b.getSourceStamp() |
| 150 | 151 | url = path_to_build(req, b) |
| 151 | 152 | reason = b.getReason() |
| 152 | 153 | template = req.site.buildbot_service.templates.get_template("box_macros.html") |
| 153 | | text = template.module.build_box(reason=reason,url=url,number=number) |
| | 154 | text = template.module.build_box(reason=reason,url=url,number=number, ss=ss) |
| 154 | 155 | class_ = "start" |
| 155 | 156 | if b.isFinished() and not b.getSteps(): |
| 156 | 157 | # the steps have been pruned, so there won't be any indication |