| OLD | NEW |
| (Empty) |
| 1 | |
| 2 from twisted.web import html | |
| 3 from buildbot.status.web.base import HtmlResource | |
| 4 import buildbot | |
| 5 import twisted | |
| 6 import sys | |
| 7 | |
| 8 class AboutBuildbot(HtmlResource): | |
| 9 title = "About this Buildbot" | |
| 10 | |
| 11 def body(self, request): | |
| 12 data = '' | |
| 13 data += '<h1>Welcome to the Buildbot</h1>\n' | |
| 14 data += '<h2>Version Information</h2>\n' | |
| 15 data += '<ul>\n' | |
| 16 data += ' <li>Buildbot: %s</li>\n' % html.escape(buildbot.version) | |
| 17 data += ' <li>Twisted: %s</li>\n' % html.escape(twisted.__version__) | |
| 18 data += ' <li>Python: %s</li>\n' % html.escape(sys.version) | |
| 19 data += ' <li>Buildmaster platform: %s</li>\n' % html.escape(sys.platfor
m) | |
| 20 data += '</ul>\n' | |
| 21 | |
| 22 data += ''' | |
| 23 <h2>Source code</h2> | |
| 24 | |
| 25 <p>Buildbot is a free software project, released under the terms of the | |
| 26 <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.</p> | |
| 27 | |
| 28 <p>Please visit the <a href="http://buildbot.net/">Buildbot Home Page</a> for | |
| 29 more information, including documentation, bug reports, and source | |
| 30 downloads.</p> | |
| 31 ''' | |
| 32 return data | |
| 33 | |
| OLD | NEW |