feat: restyle admin UI and add per-user sync run history
Adds a self-hosted stylesheet (no CDN dependencies) with a card-based dashboard and color-coded status badges, and shows the last 10 sync runs per user on the detail page.
This commit is contained in:
@@ -4,29 +4,30 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>System</h1>
|
||||
<p><a href="/">Back to dashboard</a></p>
|
||||
|
||||
<dl>
|
||||
<dt>Application version</dt>
|
||||
<dd>{{ app_version }}</dd>
|
||||
<div class="card">
|
||||
<dl class="info-grid">
|
||||
<dt>Application version</dt>
|
||||
<dd>{{ app_version }}</dd>
|
||||
|
||||
<dt>Sync interval (minutes)</dt>
|
||||
<dd>{{ sync_interval_minutes }}</dd>
|
||||
<dt>Sync interval (minutes)</dt>
|
||||
<dd>{{ sync_interval_minutes }}</dd>
|
||||
|
||||
<dt>Last scheduler tick</dt>
|
||||
<dd>{{ last_tick or "-" }}</dd>
|
||||
<dt>Last scheduler tick</dt>
|
||||
<dd>{{ last_tick or "-" }}</dd>
|
||||
|
||||
<dt>Next scheduler tick</dt>
|
||||
<dd>{{ next_tick or "-" }}</dd>
|
||||
<dt>Next scheduler tick</dt>
|
||||
<dd>{{ next_tick or "-" }}</dd>
|
||||
|
||||
<dt>User count</dt>
|
||||
<dd>{{ user_count }}</dd>
|
||||
<dt>User count</dt>
|
||||
<dd>{{ user_count }}</dd>
|
||||
|
||||
<dt>Activity count</dt>
|
||||
<dd>{{ activity_count }}</dd>
|
||||
</dl>
|
||||
<dt>Activity count</dt>
|
||||
<dd>{{ activity_count }}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<form method="post" action="/sync-all">
|
||||
<form method="post" action="/sync-all" class="inline-form">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<button type="submit">Sync all now</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user