diff --git a/web/src/pages/admin-overview/AdminOverviewPage.ts b/web/src/pages/admin-overview/AdminOverviewPage.ts
index fbe4a8949..8681e0479 100644
--- a/web/src/pages/admin-overview/AdminOverviewPage.ts
+++ b/web/src/pages/admin-overview/AdminOverviewPage.ts
@@ -131,7 +131,7 @@ export class AdminOverviewPage extends LitElement {
extends AggregateCard {
diff --git a/web/src/pages/admin-overview/cards/BackupStatusCard.ts b/web/src/pages/admin-overview/cards/BackupStatusCard.ts
index 9aa57914a..d638f926d 100644
--- a/web/src/pages/admin-overview/cards/BackupStatusCard.ts
+++ b/web/src/pages/admin-overview/cards/BackupStatusCard.ts
@@ -36,12 +36,12 @@ export class BackupStatusCard extends AdminStatusCard {
case StatusEnum.Warning:
return Promise.resolve({
icon: "fa fa-exclamation-triangle pf-m-warning",
- message: t`Backup finished with warnings/backup not supported.`,
+ message: html`${t`Backup finished with warnings/backup not supported.`}`,
});
case StatusEnum.Error:
return Promise.resolve({
icon: "fa fa-times-circle pf-m-danger",
- message: t`Backup finished with errors.`,
+ message: html`${t`Backup finished with errors.`}`,
});
default:
return Promise.resolve({
diff --git a/web/src/pages/admin-overview/cards/SystemStatusCard.ts b/web/src/pages/admin-overview/cards/SystemStatusCard.ts
index 9aba6c6d2..861d24c68 100644
--- a/web/src/pages/admin-overview/cards/SystemStatusCard.ts
+++ b/web/src/pages/admin-overview/cards/SystemStatusCard.ts
@@ -20,7 +20,7 @@ export class SystemStatusCard extends AdminStatusCard {
this.header = t`Warning`;
return Promise.resolve({
icon: "fa fa-exclamation-triangle pf-m-warning",
- message: t`HTTPS is not detected correctly`,
+ message: html`${t`HTTPS is not detected correctly`}`,
});
}
const timeDiff = value.serverTime.getTime() - (this.now || new Date()).getTime();
@@ -29,12 +29,12 @@ export class SystemStatusCard extends AdminStatusCard {
this.header = t`Warning`;
return Promise.resolve({
icon: "fa fa-exclamation-triangle pf-m-warning",
- message: t`Server and client are further than 5 seconds apart.`,
+ message: html`${t`Server and client are further than 5 seconds apart.`}`,
});
}
return Promise.resolve({
icon: "fa fa-check-circle pf-m-success",
- message: t`Everything is ok.`,
+ message: html`${t`Everything is ok.`}`,
});
}
diff --git a/web/src/pages/admin-overview/cards/VersionStatusCard.ts b/web/src/pages/admin-overview/cards/VersionStatusCard.ts
index 973faa3ae..bf5952efb 100644
--- a/web/src/pages/admin-overview/cards/VersionStatusCard.ts
+++ b/web/src/pages/admin-overview/cards/VersionStatusCard.ts
@@ -14,18 +14,26 @@ export class VersionStatusCard extends AdminStatusCard {
if (value.buildHash) {
return Promise.resolve({
icon: "fa fa-check-circle pf-m-success",
- message: t`Build hash: ${value.buildHash?.substring(0, 10)}`,
+ message: html`
+ ${t`Build hash: `}
+
+ ${value.buildHash?.substring(0, 7)}
+
+ `,
});
}
if (value.outdated) {
return Promise.resolve({
icon: "fa fa-exclamation-triangle pf-m-warning",
- message: t`${value.versionLatest} is available!`,
+ message: html`${t`${value.versionLatest} is available!`}`,
});
}
return Promise.resolve({
icon: "fa fa-check-circle pf-m-success",
- message: t`Up-to-date!`,
+ message: html`${t`Up-to-date!`}`,
});
}
diff --git a/web/src/pages/admin-overview/cards/WorkerStatusCard.ts b/web/src/pages/admin-overview/cards/WorkerStatusCard.ts
index f41ee7609..0363565bb 100644
--- a/web/src/pages/admin-overview/cards/WorkerStatusCard.ts
+++ b/web/src/pages/admin-overview/cards/WorkerStatusCard.ts
@@ -1,5 +1,5 @@
import { t } from "@lingui/macro";
-import { customElement } from "lit-element";
+import { customElement, html } from "lit-element";
import { AdminApi } from "authentik-api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { AdminStatus, AdminStatusCard } from "./AdminStatusCard";
@@ -16,7 +16,7 @@ export class WorkersStatusCard extends AdminStatusCard {
if (value < 1) {
return Promise.resolve({
icon: "fa fa-times-circle pf-m-danger",
- message: t`No workers connected. Background tasks will not run.`,
+ message: html`${t`No workers connected. Background tasks will not run.`}`,
});
} else {
return Promise.resolve({