ui: per-host Jobs sub-tab; drop unused Settings stub

Adds /hosts/{id}/jobs page listing recent jobs for the host (newest
first, capped at 100) with click-through to /jobs/{id}. Converts the
Jobs placeholder <div> to a real <a> nav link; removes the Settings
stub entirely. Also registers durationHuman template func and a
.jobs-row CSS grid to match the existing .schd-row idiom.
This commit is contained in:
2026-05-07 22:49:10 +01:00
parent 6ef58a707e
commit 28c8b58f93
10 changed files with 411 additions and 3 deletions
+25
View File
@@ -439,6 +439,31 @@
.schd-row.clickable > .row-link { pointer-events: auto; }
.schd-row.clickable > .row-action { pointer-events: auto; }
/* ---------- jobs rows (Jobs tab) ---------- */
.jobs-row {
display: grid;
grid-template-columns: 110px 110px 90px 1fr 1fr 28px;
gap: 14px;
align-items: center;
padding: 9px 14px;
font-size: 12.5px;
}
.jobs-row.head {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-mid);
padding-top: 11px;
padding-bottom: 11px;
}
.jobs-row.clickable { position: relative; }
.jobs-row.clickable .row-link {
position: absolute; inset: 0; display: block; z-index: 0;
}
.jobs-row.clickable:hover { background: var(--panel-hi); cursor: pointer; }
.jobs-row.clickable > * { position: relative; z-index: 1; pointer-events: none; }
.jobs-row.clickable > .row-link { pointer-events: auto; }
/* ---------- cron preset chips ---------- */
.preset-chip {
font-family: 'JetBrains Mono', monospace; font-size: 11.5px;