ee21251f3e
Full style rewrite (holographic/chrome dark theme) plus matching favicon, authored externally and dropped in at /home/andrew/alembic-theme. Verified every template's variable names, form field names, and action URLs match the actual data each router passes before importing -- all matched exactly with zero router/service changes needed. Validated all templates parse (Jinja2 env.get_template over the full tree) and confirmed the live container serves the new theme after rebuild+redeploy.
46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Jobs — alembic{% endblock %}
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<div>
|
|
<h1>Jobs</h1>
|
|
<p class="subtitle muted">Maintenance runs on their own schedule, or trigger them manually here.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<h2>Maintenance jobs</h2>
|
|
<div class="table-wrap scroll">
|
|
<table>
|
|
<thead><tr><th>Job</th><th>Status</th><th>Next run</th><th></th></tr></thead>
|
|
<tbody>
|
|
{% for job in maintenance_jobs %}
|
|
<tr>
|
|
<td class="mono">{{ job.job_key }}</td>
|
|
<td>{% if job.enabled %}<span class="badge badge-success">enabled</span>{% else %}<span class="badge badge-muted">disabled</span>{% endif %}</td>
|
|
<td class="muted">{{ job.next_run or "—" }}</td>
|
|
<td class="actions-cell">
|
|
<form method="post" action="/jobs/{{ job.job_key }}/run" class="inline">
|
|
<button type="submit" class="btn btn-sm">Run now</button>
|
|
</form>
|
|
<form method="post" action="/jobs/{{ job.job_key }}/toggle" class="inline">
|
|
<button type="submit" class="btn btn-sm btn-ghost">{{ "Disable" if job.enabled else "Enable" }}</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p class="muted">Playlist syncs are triggered from each playlist's own page.</p>
|
|
|
|
<h2>Recent runs</h2>
|
|
<div class="table-wrap scroll">
|
|
<table>
|
|
<thead><tr><th>Job</th><th>Status</th><th>Triggered by</th><th>Summary</th><th></th></tr></thead>
|
|
<tbody id="runs-tbody" hx-get="/jobs/_runs_table" hx-trigger="every 5s" hx-swap="innerHTML">
|
|
{% include "jobs/_runs_table.html" %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|