mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Merge pull request #1179 from element-hq/midhun/fix-1178
Account for new develop version and global hash
This commit is contained in:
commit
8e446a4dde
@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user