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')]) }} {{ $t('nav.built_at', [$d(buildTimeDate, 'shortDate')]) }}
</span> </span>
&middot; &middot;
<!-- TODO click version to show changelog --> <NuxtLink
<span v-if="buildInfo.env === 'release'">v{{ buildInfo.version }}</span> 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> <span v-else>{{ buildInfo.env }}</span>
<template v-if="buildInfo.commit && buildInfo.branch !== 'release'"> <template v-if="buildInfo.commit && buildInfo.branch !== 'release'">
&middot; &middot;