This repository has been archived on 2023-02-19. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-buildbot/templates/buildslave.html
Sergey Sharybin c4b9358874 Variety of fixes all over the place
Makes buildbot more usable, but still tweaks are needed.
2015-06-20 21:23:19 +02:00

95 lines
2.3 KiB
HTML

{% from 'build_line.html' import build_table, build_line %}
{% import 'forms.html' as forms %}
{% extends "layout.html" %}
{% block content %}
<h1>Buildslave: {{ slavename|e }}</h1>
<div>
{% if current %}
<h2>Currently building:</h2>
<ul>
{% for b in current %}
<li>{{ build_line(b, True) }}
<form method="post" action="{{ b.buildurl }}/stop" class="command stopbuild" style="display:inline">
<input type="submit" value="Stop Build" />
<input type="hidden" name="url" value="{{ this_url }}" />
</form>
</li>
{% endfor %}
</ul>
{% else %}
<h2>No current builds</h2>
{% endif %}
<h2>Recent builds</h2>
{{ build_table(recent, True) }}
</div>
<div>
{% if access_uri %}
<a href="{{ access_uri|e }}">Click to Access Slave</a>
{% endif %}
{% if admin %}
<h2>Administrator</h2>
<p>{{ admin|email }}</p>
{% endif %}
{% if host or info %}
<h2>Slave information</h2>
{% if host %}
Buildbot-Slave {{ slave_version }}
<div class="box"><p>{{ host|e }}</p></div>
{% endif %}
{% if info %}
<table class="table">
<tr><th>Name</th><th>Value</th></tr>
{% for info_name, info_val in info.iteritems() %}
<tr class="{{ loop.cycle('alt', '') }}">
<td class="left">{{ info_name|e }}</td>
{% if info_val is not mapping %}
<td>{{ info_val|e }}</td>
{% else %}
<td>
<table class="table table-striped table-hover box">
{%- for key, value in info_val.items() recursive %}
<tr><td>{{ key|e }}</td><td>{{ value|e }}</td></tr>
{% endfor %}
</table>
</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endif %}
{% endif %}
<h2>Connection Status</h2>
<p>
{{ connect_count }} connection(s) in the last hour
{% if not slave.isConnected() %}
(not currently connected)
{% else %}
</p>
{% if authz.advertiseAction('gracefulShutdown', request) %}
<h2>Graceful Shutdown</h2>
{% if slave.getGraceful() %}
<p>Slave will shut down gracefully when it is idle.</p>
{% else %}
{{ forms.graceful_shutdown(shutdown_url, authz) }}
{% endif %}
{% endif %}
{% if authz.advertiseAction('pauseSlave', request) %}
<h2>Pause Slave</h2>
{{ forms.pause_slave(pause_url, authz, slave.isPaused()) }}
{% endif %}
{% endif %}
</div>
{% endblock %}