mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
feat(vmbackups): a schedule shows how its last 14 days of backups went
The Schedules list marks each of the last 14 days by its worst run (failed, skipped, running, backed up), the day's counts on hover. A schedule's page opens with a grid of its VMs by day, each mark linking to its job, and lists the runs that did not back up with their reason; the settings form follows. A run's outcome now includes how its job ended: before, every submitted run read "Backup job", a failed one too.
This commit is contained in:
parent
9809e5b79a
commit
ab70ea2a62
11 changed files with 348 additions and 78 deletions
|
|
@ -353,3 +353,30 @@ td .tag-more {
|
|||
#main {
|
||||
scroll-margin-top: 5rem;
|
||||
}
|
||||
|
||||
/* a backup schedule's runs, a mark a day: filled backed up, crossed failed, hollow skipped, half running */
|
||||
.run-days { display: inline-flex; gap: 2px; }
|
||||
.run-mark {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: .75rem;
|
||||
height: .75rem;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 3px;
|
||||
vertical-align: middle;
|
||||
text-decoration: none;
|
||||
}
|
||||
.run-grid .run-mark { width: 1.125rem; height: 1.125rem; }
|
||||
.run-grid td, .run-grid th { padding: 2px; }
|
||||
.run-grid-vm { max-width: 14rem; padding-right: .75rem !important; position: sticky; left: 0; background: var(--bs-body-bg); }
|
||||
/* the grid scrolls on a phone starting at its newest day, at the right */
|
||||
.run-grid-scroll { overflow-x: auto; direction: rtl; width: fit-content; max-width: 100%; }
|
||||
.run-grid-scroll > table { direction: ltr; }
|
||||
.run-succeeded { background: var(--bs-success); }
|
||||
.run-failed { background: var(--bs-danger); }
|
||||
.run-failed::after { content: "\00d7"; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; }
|
||||
.run-days .run-failed::after { font-size: .625rem; }
|
||||
.run-skipped { border-color: var(--bs-secondary-color); }
|
||||
.run-running, .run-started { border-color: var(--bs-info); background: linear-gradient(90deg, var(--bs-info) 50%, transparent 50%); }
|
||||
.run-none { background: var(--bs-secondary-bg); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue