Skip to content

Commit

Permalink
Merge pull request #1179 from element-hq/midhun/fix-1178
Browse files Browse the repository at this point in the history
Account for new develop version and global hash
  • Loading branch information
MidhunSureshR authored Aug 19, 2024
2 parents 27c7225 + ebb78f8 commit 8e446a4
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions src/platform/web/ui/login/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
}
}

0 comments on commit 8e446a4

Please sign in to comment.