ee21251f3e
Full style rewrite (holographic/chrome dark theme) plus matching favicon, authored externally and dropped in at /home/andrew/alembic-theme. Verified every template's variable names, form field names, and action URLs match the actual data each router passes before importing -- all matched exactly with zero router/service changes needed. Validated all templates parse (Jinja2 env.get_template over the full tree) and confirmed the live container serves the new theme after rebuild+redeploy.
48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Dedup — alembic{% endblock %}
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<div>
|
|
<h1>Dedup review</h1>
|
|
<p class="subtitle muted">Scheduled runs are dry-run only, every day. Nothing is deleted without a confirm below.</p>
|
|
</div>
|
|
<div class="actions">
|
|
<form method="post" action="/dedup/scan" class="inline">
|
|
<button type="submit" class="btn btn-primary">Scan now</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<h2>Pending candidates</h2>
|
|
<form method="post" action="/dedup/confirm">
|
|
<div class="table-wrap scroll">
|
|
<table>
|
|
<thead>
|
|
<tr><th></th><th>Pass</th><th>Keep</th><th>Delete</th><th>Size</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for c in candidates %}
|
|
<tr>
|
|
<td><input type="checkbox" name="candidate_id" value="{{ c.id }}"></td>
|
|
<td><span class="badge badge-info">{{ c.pass_name }}</span></td>
|
|
<td class="muted mono truncate">{{ c.keep_path }}</td>
|
|
<td class="mono truncate">{{ c.delete_path }}</td>
|
|
<td class="muted">{{ (c.delete_size_bytes / 1024 / 1024) | round(1) if c.delete_size_bytes else '?' }} MB</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr class="empty-row"><td colspan="5">
|
|
<div class="empty-state">
|
|
<span class="sparkle" style="position:relative; display:inline-block; margin-bottom:0.5rem;"></span>
|
|
<p class="muted" style="margin:0;">No pending candidates. Run a scan.</p>
|
|
</div>
|
|
</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% if candidates %}
|
|
<button type="submit" class="btn btn-danger">Delete selected</button>
|
|
{% endif %}
|
|
</form>
|
|
{% endblock %}
|