CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 13s
CI / Tests (Python 3.13) (push) Successful in 13s
CI / Tests (Python 3.14) (push) Successful in 10s
CI / Type Checking (push) Successful in 10s
CI / Spelling (push) Successful in 5s
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Timers{% endblock %}
|
|
{% block content %}
|
|
<h1 class="mb-3">Timers</h1>
|
|
{% if timers %}
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">#</th>
|
|
<th>Name</th>
|
|
<th>Message</th>
|
|
<th class="text-center">Interval</th>
|
|
<th class="text-center">Min Lines</th>
|
|
<th class="text-center">Status</th>
|
|
<th>Last Fired</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for timer in timers %}
|
|
<tr>
|
|
<td class="text-center">{{ timer.id }}</td>
|
|
<td>{{ timer.name or "" }}</td>
|
|
<td>{{ timer.message or "(not set)" }}</td>
|
|
<td class="text-center">{{ timer.interval_value }} ({{ timer.interval_type }})</td>
|
|
<td class="text-center">{{ timer.min_chat_lines }}</td>
|
|
<td class="text-center">{% if timer.enabled %}Enabled{% else %}Disabled{% endif %}</td>
|
|
<td>{% if timer.last_fired_at %}{{ timer.last_fired_at[:19] | replace("T", " ") }} UTC{% else %}Never{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No timers have been created yet.</p>
|
|
{% endif %}
|
|
{% endblock %}
|