vagrant/test/buildbot/master/templates/buildslaves.html

71 lines
1.5 KiB
HTML

{% extends "layouts/base.html" %}
{% block content %}
<h1>Buildslaves</h1>
<table class="zebra-striped">
<thead>
<tr>
<th>Name</th>
{%- if show_builder_column %}
<th>Builders</th>
{%- endif %}
<th>BuildBot</th>
<th>Admin</th>
<th>Last heard from</th>
<th>Connects/Hour</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for s in slaves %}
<tr class="{{ loop.cycle('alt','') }}">
<td><b><a href="{{ s.link }}">{{ s.name }}</a></b></td>
{%- if show_builder_column %}
<td>
{%- if s.builders %}
{%- for b in s.builders %}
<a href="{{ b.link }}">{{ b.name }}</a><br />
{%- endfor %}
{%- else %}
<span class="Warning">no builders</span>
{%- endif -%}
</td>
{%- endif %}
<td>{{ (s.version or '-')|e }}</td>
{%- if s.admin -%}
<td>{{ s.admin|email }}</td>
{%- else -%}
<td>-</td>
{%- endif -%}
<td>
{%- if s.last_heard_from_age -%}
{{ s.last_heard_from_age }}
{%- endif -%}
</td>
<td>
{{ s.connectCount }}
</td>
{% if s.connected %}
{% if s.running_builds %}
<td class="building">Running {{ s.running_builds }} build(s)</td>
{% else %}
<td class="idle">Idle</td>
{% endif %}
{% else %}
<td class="offline">Not connected</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}