From ebb78f8f69e56a02b9ea1d2dfe28be95045a28c1 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Mon, 19 Aug 2024 19:17:42 +0530 Subject: [PATCH] Account for new version and hash --- src/platform/web/ui/login/common.js | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/platform/web/ui/login/common.js b/src/platform/web/ui/login/common.js index 948eff34..1681ef22 100644 --- a/src/platform/web/ui/login/common.js +++ b/src/platform/web/ui/login/common.js @@ -15,12 +15,29 @@ limitations under the License. */ export function hydrogenGithubLink(t) { - if (DEFINE_VERSION && DEFINE_GLOBAL_HASH) { - return t.a({target: "_blank", - href: `https://github.com/vector-im/hydrogen-web/releases/tag/v${DEFINE_VERSION}`}, - `Hydrogen v${DEFINE_VERSION} (${DEFINE_GLOBAL_HASH}) on Github`); + if (DEFINE_VERSION === "develop") { + return t.a( + { + target: "_blank", + href: `https://github.com/vector-im/hydrogen-web`, + }, + `Hydrogen develop, ${DEFINE_GLOBAL_HASH}` + ); + } else if (DEFINE_VERSION && DEFINE_GLOBAL_HASH) { + return t.a( + { + target: "_blank", + href: `https://github.com/vector-im/hydrogen-web/releases/tag/v${DEFINE_VERSION}`, + }, + `Hydrogen v${DEFINE_VERSION} (${DEFINE_GLOBAL_HASH}) on Github` + ); } else { - return t.a({target: "_blank", href: "https://github.com/vector-im/hydrogen-web"}, - "Hydrogen on Github"); + return t.a( + { + target: "_blank", + href: "https://github.com/vector-im/hydrogen-web", + }, + "Hydrogen on Github" + ); } }