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.
35 lines
839 B
HTML
35 lines
839 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}System - MyWhoosh Garmin Sync{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>System</h1>
|
|
|
|
<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>Last scheduler tick</dt>
|
|
<dd>{{ last_tick or "-" }}</dd>
|
|
|
|
<dt>Next scheduler tick</dt>
|
|
<dd>{{ next_tick or "-" }}</dd>
|
|
|
|
<dt>User count</dt>
|
|
<dd>{{ user_count }}</dd>
|
|
|
|
<dt>Activity count</dt>
|
|
<dd>{{ activity_count }}</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<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>
|
|
{% endblock %}
|