OLD | NEW |
(Empty) | |
| 1 {% macro build_line(b, include_builder=False) %} |
| 2 <small>({{ b.time }})</small> |
| 3 Rev: {{ b.rev|longrev(b.rev_repo) }} |
| 4 <span class="{{ b.class }}">{{ b.results }}</span> |
| 5 {% if include_builder %} |
| 6 <a href="{{ b.builderurl }}">{{ b.builder_name }}</a> |
| 7 {% endif %} |
| 8 <a href="{{ b.buildurl }}">#{{ b.buildnum }}</a> - |
| 9 {{ b.text|capitalize }} |
| 10 {% endmacro %} |
| 11 |
| 12 {% macro build_tr(b, include_builder=False, loop=None) %} |
| 13 <tr class="{{ loop.cycle('alt', '') if loop }}"> |
| 14 <td>{{ b.time }}</td> |
| 15 <td class="revision">{{ b.rev|longrev(b.rev_repo) }}</td> |
| 16 <td class="{{ b.class }}">{{ b.results }}</td> |
| 17 {%- if include_builder %} |
| 18 <td><a href="{{ b.builderurl }}">{{ b.builder_name }}</a></td> |
| 19 {% endif %} |
| 20 <td><a href="{{ b.buildurl }}">#{{ b.buildnum }}</a></td> |
| 21 <td class="left">{{ b.text|capitalize }}</td> |
| 22 </tr> |
| 23 {% endmacro %} |
| 24 |
| 25 {% macro build_table(builds, include_builder=False) %} |
| 26 {% if builds %} |
| 27 <table class="info"> |
| 28 <tr> |
| 29 <th>Time</th> |
| 30 <th>Revision</th> |
| 31 <th>Result</th> |
| 32 {%- if include_builder %} |
| 33 <th>Builder</th> |
| 34 {% endif %} |
| 35 <th>Build #</th> |
| 36 <th>Info</th> |
| 37 </tr> |
| 38 {% for b in builds %} |
| 39 {{ build_tr(b, include_builder, loop) }} |
| 40 {% endfor %} |
| 41 </table> |
| 42 {% else %} |
| 43 No matching builds found |
| 44 {% endif %} |
| 45 {% endmacro %} |
OLD | NEW |