mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-21 07:41:28 +02:00
The first cut was rejected outright, and fairly. Four things were wrong. The running head and foot sat 1.4mm from the physical sheet: vertical-align:top on the @top-* margin boxes pins text to the paper, not to the text block. They now hang off the block with RUNNING_CLEAR of air on the inside edge. Severity was five saturated hues, restated by every theme and slightly different in each. It is now one reserved ramp defined once, light rather than heavy, with lightness carrying the rank so it survives deuteranopia; it clears the CVD and normal-vision floors all-pairs on white paper. A dark page picks up the dark restep automatically, so a dark theme carries no severity block at all. shared/utils/color.py converts through OKLCH, so a theme names one colour and the document derives the wash a badge sits on and the ink that sits on the wash — every badge clears 7:1, including one from a theme a user uploads. Badges are pills, never saturated slabs, and never inline-flex, which WeasyPrint lays out as a block so the badge stretched its whole column. Mono is for machine values now — hostnames, evidence, hashes. Labels, table headers and the running head are the body face, and uppercase_labels finally does something: the CSS had hard-coded uppercase and ignored the token. Prose fills the text column, justified and hyphenated, instead of sitting in a narrow measure with dead space beside it. Chapters still start a new page, but a document may now ask them to run on, and the page estimate knows the difference: 52 pages against 52, and 48 against 48. Two defects the redesign surfaced: the risk summary never passed the variables its own template reads, so that severity table had always printed empty; and the standalone HTML export had no margins at all, because @page geometry does not apply on screen. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AW5pitnosX8LEFEYxH8gFS
35 lines
1.7 KiB
HTML
35 lines
1.7 KiB
HTML
<p class="block muted small">{{ total|num }} certificates were observed. {{ expired|num }} have expired, {{ expiring|num }} expire within {{ window }} days and {{ self_signed|num }} are self signed.</p>
|
|
{% if clean %}
|
|
<div class="callout callout--quiet">No certificate has expired, is expiring within {{ window }} days, or is self signed.</div>
|
|
{% else %}
|
|
<table class="table table--fixed">
|
|
<thead><tr><th>Host</th><th style="width:26mm">Expires</th><th class="num" style="width:20mm">Days</th><th style="width:44mm">Issuer</th><th style="width:22mm">State</th></tr></thead>
|
|
<tbody>
|
|
{% for row in rows %}
|
|
<tr>
|
|
<td class="micro mono-break wrap">{{ row.host }}</td>
|
|
<td class="micro">{{ row.not_after|date('%d %b %Y') }}</td>
|
|
<td class="num micro">{{ row.days_left if row.days_left is not none else '—' }}</td>
|
|
<td class="micro muted wrap">{{ row.issuer|clip(40) or '—' }}</td>
|
|
<td class="micro">
|
|
{% if row.expired %}<span class="badge badge--high">expired</span>
|
|
{% elif row.self_signed %}<span class="badge badge--medium">self signed</span>
|
|
{% elif row.days_left is not none and row.days_left <= window %}<span class="badge badge--medium">expiring</span>
|
|
{% else %}<span class="faint">valid</span>{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% if hidden %}<p class="micro faint" style="margin-top:1.4mm">{{ hidden|num }} further certificates are not listed.</p>{% endif %}
|
|
{% endif %}
|
|
|
|
{% if issuers %}
|
|
<div class="sub">
|
|
<div class="label block">Issuers</div>
|
|
<table class="table">
|
|
<tbody>{% for name, count in issuers %}<tr><td class="wrap">{{ name }}</td><td class="num" style="width:22mm">{{ count|num }}</td></tr>{% endfor %}</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|