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

{{ "status.loading" | t }}

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

{{ "status.apiUnreachable" | t }}

{{ "investigations.list.error" | t }}

} @if (state() === "ok") { @if (items().length === 0) {

{{ "investigations.list.empty.title" | t }}

{{ "investigations.list.empty.body" | t }}

{{ "investigations.new.action" | t }}
} @else {

{{ "investigations.list.title" | t }}

@if (sorted().length === 0) {

{{ "investigations.noMatch" | t }}

} @else {
@for (inv of paged(); track inv.investigation_id) { }
{{ "investigations.col.problem" | t }} {{ "investigations.col.open" | t }}
{{ inv.investigation_id }} {{ inv.problem || "—" }} {{ "investigations.status." + inv.status | t }} {{ formatEpoch(inv.created) }} {{ formatEpoch(inv.updated) }} {{ "investigations.open" | t }}
}
} }