- Detail panels: softer (color-mix --line-soft) border. h2 sub-section
spacing inside a single outer panel. admin and job_detail collapse to
one panel each.
- Color tokens: --color-button-primary / --color-button-danger stay
saturated in dark mode so white text on filled buttons stays readable.
- Site header: transparent, no full-width bar; aligned with panel-content
width. No more sticky.
- Page-level Delete: low-contrast outline button at the page footer
(left side, justify-content flex-start). Save buttons no longer
full-width (.stack > button { justify-self: end }).
- form-actions-inline helper for right-aligned button rows.
- New service: l4d2web.services.timeago.humanize_delta — used by the
upcoming server / overlay live-status partials.
- Server route: POST /servers/<id> renames the server (mirrors the
overlay update pattern, returns 409 on per-user duplicate).
- Overlay route: POST /overlays/<id>/script handles `action` form value
— `save_build` (default) or `save_reset_build` (wipes overlay dir
before queuing build). Redirect lands on /overlays/<id> instead of
the job page so users see the live status.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
995 B
HTML
27 lines
995 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Admin | left4me{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="panel">
|
|
<h1>Admin</h1>
|
|
<ul class="link-list">
|
|
<li><a href="/admin/users">Users</a></li>
|
|
<li><a href="/admin/jobs">Jobs</a></li>
|
|
</ul>
|
|
|
|
<h2>Runtime</h2>
|
|
<p class="muted">Queue a Steam runtime install/update job for the local host.</p>
|
|
<form method="post" action="/admin/install">
|
|
<input type="hidden" name="csrf_token" value="{{ session.get('csrf_token', '') }}">
|
|
<button type="submit">Install or update runtime</button>
|
|
</form>
|
|
|
|
<h2>Workshop</h2>
|
|
<p class="muted">Re-fetch metadata for every workshop item; re-download those with newer versions on Steam, then enqueue rebuilds for the affected overlays.</p>
|
|
<form method="post" action="/admin/workshop/refresh">
|
|
<input type="hidden" name="csrf_token" value="{{ session.get('csrf_token', '') }}">
|
|
<button type="submit">Refresh all workshop items</button>
|
|
</form>
|
|
</section>
|
|
{% endblock %}
|