web/admin: link build hash when set
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -14,18 +14,26 @@ export class VersionStatusCard extends AdminStatusCard<Version> {
|
||||
if (value.buildHash) {
|
||||
return Promise.resolve<AdminStatus>({
|
||||
icon: "fa fa-check-circle pf-m-success",
|
||||
message: t`Build hash: ${value.buildHash?.substring(0, 10)}`,
|
||||
message: html`
|
||||
${t`Build hash: `}
|
||||
<a
|
||||
href="https://github.com/goauthentik/authentik/commit/${value.buildHash}"
|
||||
target="_blank"
|
||||
>
|
||||
${value.buildHash?.substring(0, 7)}
|
||||
</a>
|
||||
`,
|
||||
});
|
||||
}
|
||||
if (value.outdated) {
|
||||
return Promise.resolve<AdminStatus>({
|
||||
icon: "fa fa-exclamation-triangle pf-m-warning",
|
||||
message: t`${value.versionLatest} is available!`,
|
||||
message: html`${t`${value.versionLatest} is available!`}`,
|
||||
});
|
||||
}
|
||||
return Promise.resolve<AdminStatus>({
|
||||
icon: "fa fa-check-circle pf-m-success",
|
||||
message: t`Up-to-date!`,
|
||||
message: html`${t`Up-to-date!`}`,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user