aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/status/web/templates/build_line.html
blob: fc08b9dc026d992b8b6a1abac7de536cf1f63a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{% macro build_line(b, include_builder=False) %}
  <small>({{ b.time }})</small>
  Rev: {{ b.rev|shortrev(b.rev_repo) }}
  <span class="{{ b.class }}">{{ b.results }}</span>
  {% if include_builder %}
    <a href="{{ b.builderurl }}">{{ b.builder_name }}</a>
  {% endif %}
  <a href="{{ b.buildurl }}">#{{ b.buildnum }}</a> - 
  {{ b.text|capitalize }}
{% endmacro %}

{% macro build_tr(b, include_builder=False, loop=None) %}
  <tr class="{{ loop.cycle('alt', '') if loop }}">
    <td>{{ b.time }}</td>
    <td>{{ b.rev|shortrev(b.rev_repo) }}</td>
    <td class="{{ b.class }}">{{ b.results }}</td>
  {%- if include_builder %}    
    <td><a href="{{ b.builderurl }}">{{ b.builder_name }}</a></td>
  {% endif %}
    <td><a href="{{ b.buildurl }}">#{{ b.buildnum }}</a></td> 
    <td class="left">{{ b.text|capitalize }}</td>
  </tr>
{% endmacro %}

{% macro build_table(builds, include_builder=False) %}
{% if builds %}
<table class="info"> 
  <tr>
    <th>Time</th>
    <th>Revision</th>
    <th>Result</th>
     {%- if include_builder %}   
    <th>Builder</th>
     {% endif %}
    <th>Build #</th>
    <th>Info</th>
  </tr>
  {% for b in builds %}
    {{ build_tr(b, include_builder, loop) }}
  {% endfor %}
</table>
{% else %}
  No matching builds found
{% endif %}
{% endmacro %}