26 lines
1.4 KiB
HTML
26 lines
1.4 KiB
HTML
<!-- retoor <retoor@molodetz.nl> -->
|
|
{% extends "admin/base_admin.html" %}
|
|
{% block admin_content %}
|
|
<h1>Services</h1>
|
|
<div class="table-wrap">
|
|
<table class="admin-table" data-service-monitor="index">
|
|
<thead><tr><th>Service</th><th>Status</th><th>Laatste run</th><th>Volgende run</th><th></th></tr></thead>
|
|
<tbody>
|
|
{% for service in services %}
|
|
<tr data-service="{{ service.name }}">
|
|
<td><a href="/admin/services/{{ service.name }}">{{ service.title }}</a><br><span class="muted">{{ service.description }}</span></td>
|
|
<td><span class="status {{ service.status }}" data-field="status">{{ service.status }}</span></td>
|
|
<td data-field="last_run">{{ local_dt(service.last_run) }}</td>
|
|
<td data-field="next_run">{{ local_dt(service.next_run) }}</td>
|
|
<td class="actions">
|
|
<form method="post" action="/admin/services/{{ service.name }}/command"><input type="hidden" name="verb" value="{{ 'stop' if service.enabled else 'start' }}"><button class="button ghost small" type="submit">{{ 'Stop' if service.enabled else 'Start' }}</button></form>
|
|
<form method="post" action="/admin/services/{{ service.name }}/command"><input type="hidden" name="verb" value="run"><button class="button ghost small" type="submit">Nu draaien</button></form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|
|
{% block extra_js %}<script type="module" src="{{ static_url('/static/js/utils/ServiceMonitor.js') }}"></script>{% endblock %}
|