/kai/templates/buildbot/details.mako
Mako | 45 lines | 45 code | 0 blank | 0 comment | 2 complexity | 4014730c9261f365de95d045ead97dcc MD5 | raw file
1<%! 2from datetime import datetime 3%> 4<div class="close"><a href="#">${_('Close Window')}</a></div> 5<div id="build-details" style="cursor: default"> 6 <h2>${_('Build Steps')}</h2> 7 <table> 8 <thead> 9 <tr> 10 <th>Step</th> 11 <th>Start</th> 12 <th>End</th> 13 </tr> 14 </thead> 15 <tbody> 16 % for step in c.details['steps']: 17 <% 18 pretty_text = ' '.join(step['text']) 19 start = datetime.fromtimestamp(step['start']) 20 end = datetime.fromtimestamp(step['end']) 21 %> 22 % if step['text'] and step['text'][-1] == 'failed': 23 <tr class="build-step failure"> 24 <td>${pretty_text}</td> 25 <td class="times">${format.datetime(start)}</td> 26 <td class="times">${format.datetime(end)}</td> 27 </tr> 28 <tr><td colspan="3"> 29 <pre><code> 30 ${'\n' + c.details['full_error'][step['name']]} 31 </code></pre> 32 </td> 33 </tr> 34 % else: 35 <tr class="build-step success"> 36 <td class="success">${pretty_text}</td> 37 <td class="times">${format.datetime(start)}</td> 38 <td class="times">${format.datetime(end)}</td> 39 </tr> 40 % endif 41 % endfor 42 </tbody> 43 </table> 44</div> 45<div class="close"><a href="#">${_('Close Window')}</a></div>