@if (state() === "loading") {

{{ "status.loading" | t }}

} @if (state() === "error") {

{{ "status.apiUnreachable" | t }}

{{ "ops.loadError" | t }}

} @if (state() === "ok") {

{{ "ops.stateNote" | t }}

{{ "ops.dash.snapshots.title" | t }}

@if (snapshots() === null) {

{{ "ops.unavailable" | t }}

} @else if (snapshots()!.length === 0) {

{{ "ops.dash.snapshots.empty" | t }}

} @else {

{{ snapshots()!.length }} {{ "ops.dash.snapshots.total" | t }}

{{ "ops.dash.snapshots.byPlatform" | t }}

    @for (row of snapshotsByPlatform(); track row[0]) {
  • {{ row[0] }} {{ row[1] }}
  • }
}

{{ "ops.dash.alerts.title" | t }}

@if (alerts() === null) {

{{ "ops.unavailable" | t }}

} @else if (alerts()!.length === 0) {

{{ "ops.dash.alerts.empty" | t }}

} @else {

{{ alerts()!.length }} {{ "ops.dash.alerts.total" | t }}

    @for (row of alertsBySeverity(); track row[0]) {
  • {{ row[0] }} {{ row[1] }}
  • } @if (alertsRecovered() > 0) {
  • {{ "ops.dash.alerts.recovered" | t }} {{ alertsRecovered() }}
  • }
}

{{ "ops.dash.watches.title" | t }}

@if (watches() === null) {

{{ "ops.unavailable" | t }}

} @else if (watches()!.length === 0) {

{{ "ops.dash.watches.empty" | t }}

} @else {

{{ watches()!.length }} {{ "ops.dash.watches.total" | t }}

  • {{ "ops.dash.watches.enabled" | t }} {{ watchesEnabled() }}
  • {{ "ops.dash.watches.disabled" | t }} {{ watchesDisabled() }}
}

{{ "ops.dash.plans.title" | t }}

@if (plans() === null) {

{{ "ops.unavailable" | t }}

} @else if (plans()!.length === 0) {

{{ "ops.dash.plans.empty" | t }}

} @else {

{{ plans()!.length }} {{ "ops.dash.plans.total" | t }}

{{ "ops.dash.plans.byState" | t }}

    @for (row of plansByState(); track row[0]) {
  • {{ row[0] }} {{ row[1] }}
  • }
}
}