diff --git a/web/src/admin/admin-overview/cards/VersionStatusCard.ts b/web/src/admin/admin-overview/cards/VersionStatusCard.ts index 304eddf5a..85bbd6a30 100644 --- a/web/src/admin/admin-overview/cards/VersionStatusCard.ts +++ b/web/src/admin/admin-overview/cards/VersionStatusCard.ts @@ -12,7 +12,6 @@ import { AdminApi, Version } from "@goauthentik/api"; @customElement("ak-admin-status-version") export class VersionStatusCard extends AdminStatusCard { - headerLink = "https://goauthentik.io/docs/releases"; icon = "pf-icon pf-icon-bundle"; getPrimaryValue(): Promise { @@ -43,16 +42,12 @@ export class VersionStatusCard extends AdminStatusCard { } renderValue(): TemplateResult { + let text = this.value?.versionCurrent; + let link = "https://goauthentik.io/docs/releases/${this.value?.versionCurrent}"; if (this.value?.buildHash) { - return html` - - ${this.value.buildHash?.substring(0, 7)} - - `; + text = this.value.buildHash?.substring(0, 7); + link = "https://github.com/goauthentik/authentik/commit/${this.value.buildHash}"; } - return html`${this.value?.versionCurrent}`; + return html` ${text} `; } }