sync errors
This commit is contained in:
+15
-1
@@ -11,11 +11,14 @@
|
||||
{% if next_run %} — next: {{ next_run }}{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
||||
<form method="post" action="/sync/rescan" style="display:inline">
|
||||
<button class="btn btn-secondary" {% if sync_running %}disabled{% endif %}>Rescan remote</button>
|
||||
</form>
|
||||
<form method="post" action="/sync" style="display:inline">
|
||||
{% if sync_running %}
|
||||
<button class="btn btn-disabled" disabled>Sync running…</button>
|
||||
{% else %}
|
||||
<button class="btn btn-primary">Run Sync Now</button>
|
||||
<button class="btn btn-primary" {% if cache_info.count == 0 %}title="Run 'Rescan remote' first to populate the zip list"{% endif %}>Run Sync Now</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% if not sync_running %}
|
||||
@@ -35,10 +38,21 @@
|
||||
{% if request.query_params.get("test_started") %}
|
||||
<div class="alert alert-success">Test sync started — processing 1 archive.</div>
|
||||
{% endif %}
|
||||
{% if request.query_params.get("rescan_started") %}
|
||||
<div class="alert alert-success">Remote rescan started — this will take a few minutes. Check logs for progress.</div>
|
||||
{% endif %}
|
||||
{% if request.query_params.get("already_running") %}
|
||||
<div class="alert alert-warning">A sync is already running.</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="cache-status">
|
||||
{% if cache_info.count > 0 %}
|
||||
<span class="muted small">Remote cache: <strong>{{ cache_info.count }}</strong> zip(s) — last scanned {{ cache_info.last_scan[:19] if cache_info.last_scan else "never" }} UTC</span>
|
||||
{% else %}
|
||||
<span class="muted small" style="color:var(--warning)">Remote cache empty — first sync will run a full scan (may take several minutes).</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="stats-grid">
|
||||
<div class="stat-card">
|
||||
<div class="stat-value">{{ stats.total_zips }}</div>
|
||||
|
||||
Reference in New Issue
Block a user