-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
buildslave.html
62 lines (53 loc) · 1.39 KB
/
buildslave.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{% 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 class="column">
{% 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 class="column">
{% 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 %}
<h2>Slave information</h2>
<pre>{{ host|e }}</pre>
{% endif %}
<h2>Connection Status</h2>
<p>
{{ connect_count }} connection(s) in the last hour
{% if not slave.isConnected() %}
(not currently connected)
{% endif %}
</p>
{% if authz.advertiseAction('gracefulShutdown') %}
<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 %}
</div>
{% endblock %}