Adds two managed system overlays (l4d2center-maps, cedapug-maps) that fetch curated map archives from upstream sources and reconcile addons symlinks for non-Steam maps. A daily systemd timer enqueues a coalesced refresh_global_overlays worker job; downloads, extraction, and rebuilds run in the existing job worker and surface in the job log UI. Schema: GlobalOverlaySource / GlobalOverlayItem / GlobalOverlayItemFile plus nullable Job.user_id so system jobs render as "system" in the UI. The new builder reconciles symlinks against the per-source vpk cache and leaves foreign symlinks untouched. Initialize-time guard refuses to mount a partial overlay if any expected vpk is missing from cache. Refresh service uses shutil.move to handle EXDEV when /tmp and the cache live on different filesystems. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Operation</th>
|
|
<th>State</th>
|
|
{% if show_user %}<th>User</th>{% endif %}
|
|
{% if show_server %}<th>Server</th>{% endif %}
|
|
<th>Created</th>
|
|
<th>Finished</th>
|
|
{% if show_cancel %}<th>Action</th>{% endif %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for job, user, server in rows %}
|
|
<tr>
|
|
<td><a href="/jobs/{{ job.id }}">#{{ job.id }}</a></td>
|
|
<td>{{ job.operation }}</td>
|
|
<td>{{ job.state }}</td>
|
|
{% if show_user %}<td>{{ user.username if user else "system" }}</td>{% endif %}
|
|
{% if show_server %}<td>{% if server %}<a href="/servers/{{ server.id }}">{{ server.name }}</a>{% else %}-{% endif %}</td>{% endif %}
|
|
<td>{{ job.created_at }}</td>
|
|
<td>{{ job.finished_at or "-" }}</td>
|
|
{% if show_cancel %}
|
|
<td>
|
|
{% if job.state in ["queued", "running"] %}
|
|
<form method="post" action="/jobs/{{ job.id }}/cancel" class="inline-form">
|
|
<input type="hidden" name="csrf_token" value="{{ session.get('csrf_token', '') }}">
|
|
<input type="hidden" name="next" value="{{ cancel_next or request.path }}">
|
|
<button class="danger" type="submit">cancel</button>
|
|
</form>
|
|
{% else %}
|
|
<span class="muted">-</span>
|
|
{% endif %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% else %}
|
|
<tr><td colspan="8" class="muted">No jobs found.</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|