OLD | NEW |
1 # This file is part of Buildbot. Buildbot is free software: you can | 1 # This file is part of Buildbot. Buildbot is free software: you can |
2 # redistribute it and/or modify it under the terms of the GNU General Public | 2 # redistribute it and/or modify it under the terms of the GNU General Public |
3 # License as published by the Free Software Foundation, version 2. | 3 # License as published by the Free Software Foundation, version 2. |
4 # | 4 # |
5 # This program is distributed in the hope that it will be useful, but WITHOUT | 5 # This program is distributed in the hope that it will be useful, but WITHOUT |
6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | 6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | 7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
8 # details. | 8 # details. |
9 # | 9 # |
10 # You should have received a copy of the GNU General Public License along with | 10 # You should have received a copy of the GNU General Public License along with |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return ChangeResource(changeid) | 56 return ChangeResource(changeid) |
57 | 57 |
58 class ChangeBox(components.Adapter): | 58 class ChangeBox(components.Adapter): |
59 implements(IBox) | 59 implements(IBox) |
60 | 60 |
61 def getBox(self, req): | 61 def getBox(self, req): |
62 url = req.childLink("../changes/%d" % self.original.number) | 62 url = req.childLink("../changes/%d" % self.original.number) |
63 template = req.site.buildbot_service.templates.get_template("change_macr
os.html") | 63 template = req.site.buildbot_service.templates.get_template("change_macr
os.html") |
64 text = template.module.box_contents(url=url, | 64 text = template.module.box_contents(url=url, |
65 who=self.original.getShortAuthor(), | 65 who=self.original.getShortAuthor(), |
66 pageTitle=self.original.comments) | 66 pageTitle=self.original.comments, |
| 67 revision=self.original.revision) |
67 return Box([text], class_="Change") | 68 return Box([text], class_="Change") |
68 components.registerAdapter(ChangeBox, Change, IBox) | 69 components.registerAdapter(ChangeBox, Change, IBox) |
69 | 70 |
OLD | NEW |