1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 16:39:58 +00:00

feat: link to github releases from version number in app

This commit is contained in:
patak 2023-01-13 10:03:05 +01:00
parent 39f9e7b6ad
commit f78a7cd98d

View file

@ -47,8 +47,15 @@ function toggleDark() {
{{ $t('nav.built_at', [$d(buildTimeDate, 'shortDate')]) }}
</span>
&middot;
<!-- TODO click version to show changelog -->
<span v-if="buildInfo.env === 'release'">v{{ buildInfo.version }}</span>
<NuxtLink
v-if="buildInfo.env === 'release'"
external
:href="`https://github.com/elk-zone/elk/releases/tag/v${buildInfo.version}`"
target="_blank"
font-mono
>
v{{ buildInfo.version }}
</NuxtLink>
<span v-else>{{ buildInfo.env }}</span>
<template v-if="buildInfo.commit && buildInfo.branch !== 'release'">
&middot;