The route /admin/global-overlays/refresh was removed with the script-overlays rewrite (migration 0005 dropped the global_overlay_* tables; the systemd refresh units were deleted from deploy/). The admin-page form was left behind and would 404 on submit. Drop the section and lock it out with an assertion in the existing admin-pages test. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
31 lines
1 KiB
HTML
31 lines
1 KiB
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>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<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>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<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 %}
|