2015-06-14 20:23:25 +02:00
|
|
|
{% macro build_line(b, include_builder=False) %}
|
|
|
|
<small>({{ b.time }})</small>
|
|
|
|
Rev: {% if b.multiple_revs -%}
|
|
|
|
multiple rev
|
|
|
|
{%- else -%}
|
|
|
|
{{ b.rev_list[0]['rev']|shortrev(b.rev_list[0]['repo']) }}
|
|
|
|
{%- endif %}
|
|
|
|
<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 }}">
|
2015-06-20 21:15:24 +02:00
|
|
|
<td><span style="white-space: nowrap;">{{ b.time }}</span></td>
|
2015-06-14 20:23:25 +02:00
|
|
|
<td>{%- for rev in b.rev_list -%}
|
|
|
|
{%- if not loop.first %}<br/>{% endif -%}
|
|
|
|
{%- if rev.get('codebase', '') %}<span class='codebase'>{{ rev['codebase'] }}</span>: {% endif -%}
|
|
|
|
{{ rev['rev']|shortrev(rev['repo']) }}
|
|
|
|
{%- endfor -%}
|
|
|
|
</td>
|
2015-06-20 21:15:24 +02:00
|
|
|
<td style="padding: 0;"><span class="btn-{% if b.class == "success" %}{{ b.class }}{% else %}danger{% endif %} btn btn-block btn-squishy disabled">{{ b.results }}</span></td>
|
2015-06-14 20:23:25 +02:00
|
|
|
{%- if include_builder %}
|
2015-06-20 21:15:24 +02:00
|
|
|
<td><a class="info" style="white-space: nowrap;" href="{{ b.builderurl }}">{{ b.builder_name }}</a></td>
|
2015-06-14 20:23:25 +02:00
|
|
|
{% endif %}
|
2015-06-20 21:15:24 +02:00
|
|
|
<td><a class="info" style="white-space: nowrap;" href="{{ b.buildurl }}">#{{ b.buildnum }}</a></td>
|
2015-06-14 20:23:25 +02:00
|
|
|
<td><span class='reason'>{{ b.reason|e }}</span>
|
|
|
|
{%- for user in (b.interested_users or []) -%}
|
|
|
|
{%- if not loop.first %}, {% endif -%}
|
|
|
|
<span class='interested_user'>{{ user|e }}</span>
|
|
|
|
{%- endfor -%}
|
|
|
|
</td>
|
2015-06-20 21:15:24 +02:00
|
|
|
<td><span style="white-space: nowrap;">{{ b.text|capitalize }}</span></td>
|
2015-06-14 20:23:25 +02:00
|
|
|
</tr>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro build_table(builds, include_builder=False) %}
|
|
|
|
{% if builds %}
|
2015-06-20 21:15:24 +02:00
|
|
|
<table class="table table-striped table-hover box">
|
2015-06-14 20:23:25 +02:00
|
|
|
<tr>
|
|
|
|
<th>Time</th>
|
|
|
|
<th>Revision</th>
|
|
|
|
<th>Result</th>
|
|
|
|
{%- if include_builder %}
|
|
|
|
<th>Builder</th>
|
|
|
|
{% endif %}
|
2015-06-20 21:15:24 +02:00
|
|
|
<th style="white-space: nowrap;">Build #</th>
|
2015-06-14 20:23:25 +02:00
|
|
|
<th>Reason</th>
|
|
|
|
<th>Info</th>
|
|
|
|
</tr>
|
|
|
|
{% for b in builds %}
|
|
|
|
{{ build_tr(b, include_builder, loop) }}
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
No matching builds found
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|