web/admin: link build hash when set

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-08-08 16:57:27 +02:00
parent 2a53bc4330
commit a9ef1a3190
6 changed files with 21 additions and 13 deletions

View File

@ -20,7 +20,7 @@ export class SystemStatusCard extends AdminStatusCard<System> {
this.header = t`Warning`;
return Promise.resolve<AdminStatus>({
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<System> {
this.header = t`Warning`;
return Promise.resolve<AdminStatus>({
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<AdminStatus>({
icon: "fa fa-check-circle pf-m-success",
message: t`Everything is ok.`,
message: html`${t`Everything is ok.`}`,
});
}