thelounge/client/components/Windows/Changelog.vue
Richard Lewis 08635beb61 Fix lint
2019-11-25 20:12:25 +02:00

52 lines
969 B
Vue

<template>
<div
id="changelog"
class="window"
aria-label="Changelog"
>
<div class="header">
<button
class="lt"
aria-label="Toggle channel list"
/>
</div>
<div class="container">
<a
id="back-to-help"
href="#"
data-target="Help"
>« Help</a>
<template v-if="version">
<h1 class="title">Release notes for {{ version }}</h1>
<template v-if="changelog">
<h3>Introduction</h3>
<div class="changelog-text">{{ changelog }}</div>
</template>
<template v-else>
<p>Unable to retrieve releases from GitHub.</p>
<p>
<a
:href="`https://github.com/thelounge/thelounge/releases/tag/v${version}`"
target="_blank"
rel="noopener"
>View release notes for this version on GitHub</a>
</p>
</template>
</template>
<p v-else>Loading changelog</p>
</div>
</div>
</template>
<script>
export default {
name: "Changelog",
mounted() {
},
};
</script>