Ticket #145: OneLineMixin.make_line.patch
| File OneLineMixin.make_line.patch, 1.1 KB (added by amax_snaplogic, 2 years ago) |
|---|
-
buildbot/status/web/base.py
299 299 class OneLineMixin: 300 300 LINE_TIME_FORMAT = "%b %d %H:%M" 301 301 302 def make_line(self, req, build, include_builder=True): 302 def get_line_values(self, req, build): 303 ''' 304 Collect the data needed for each line display 305 ''' 303 306 builder_name = build.getBuilder().getName() 304 307 results = build.getResults() 305 308 text = build.getText() … … 326 329 'time': time.strftime(self.LINE_TIME_FORMAT, 327 330 time.localtime(build.getTimes()[0])), 328 331 } 332 return values 329 333 334 def make_line(self, req, build, include_builder=True): 335 ''' 336 Format and render a single line into HTML 337 ''' 338 values = self.get_line_values(req, build) 330 339 fmt_pieces = ['<font size="-1">(%(time)s)</font>', 331 340 'rev=[%(rev)s]', 332 341 '<span class="%(class)s">%(results)s</span>',
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)