{{ "reports.historyNote" | t }}

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

{{ "status.loading" | t }}

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

{{ "status.apiUnreachable" | t }}

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

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

{{ "reports.empty.title" | t }}

{{ "reports.empty.body" | t }}

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

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

@if (exportError(); as failedId) { } @if (filtered().length === 0) {

{{ "reports.filter.noMatch" | t }}

} @else {
@for (inv of filtered(); track inv.investigation_id) { }
{{ "reports.list.caption" | t }}
{{ "investigations.col.id" | t }} {{ "investigations.col.created" | t }} {{ "investigations.col.open" | t }} {{ "reports.col.export" | t }}
{{ inv.investigation_id }} {{ formatCreated(inv.created) }} {{ "investigations.open" | t }}
}

{{ "reports.cmp.title" | t }}

{{ "reports.cmp.hint" | t }}

@if (items().length < 2) {

{{ "reports.cmp.needTwo" | t }}

} @else {
@if (cmpState() === "loading") {

{{ "status.loading" | t }}

} @if (cmpState() === "error") { }
@if (cmpState() === "ok" && reportA() && reportB()) {
@for (row of diffRows(); track row.labelKey + row.suffix) { }
{{ "reports.cmp.caption" | t }}
{{ "reports.cmp.metric" | t }} {{ cmpA() }} {{ cmpB() }}
{{ row.labelKey | t }} {{ row.suffix }} {{ row.a }} {{ row.b }}
@if (toolDiff(); as td) {

{{ "reports.cmp.toolsTitle" | t }}

{{ "reports.cmp.toolsOnlyA" | t }}

@if (td.onlyA.length) {
    @for (t of td.onlyA; track t) {
  • {{ t }}
  • }
} @else {

—

}

{{ "reports.cmp.toolsOnlyB" | t }}

@if (td.onlyB.length) {
    @for (t of td.onlyB; track t) {
  • {{ t }}
  • }
} @else {

—

}

{{ "reports.cmp.toolsBoth" | t }}

@if (td.both.length) {
    @for (t of td.both; track t) {
  • {{ t }}
  • }
} @else {

—

}
}

{{ "reports.cmp.conclusionsTitle" | t }}

{{ cmpA() }}

@if (reportA()!.conclusions.length) {
    @for (c of reportA()!.conclusions; track c) {
  • {{ c }}
  • }
} @else {

{{ "investigations.detail.none" | t }}

}

{{ cmpB() }}

@if (reportB()!.conclusions.length) {
    @for (c of reportB()!.conclusions; track c) {
  • {{ c }}
  • }
} @else {

{{ "investigations.detail.none" | t }}

}

{{ "reports.cmp.disclaimer" | t }}

} }
} }