hardlounge/client/components/Windows/Changelog.vue

46 lines
1005 B
Vue
Raw Normal View History

2019-02-18 04:18:32 -05:00
<template>
2019-08-03 15:03:45 -04:00
<div id="changelog" class="window" aria-label="Changelog">
2019-02-18 04:18:32 -05:00
<div class="header">
<SidebarToggle />
2019-02-18 04:18:32 -05:00
</div>
<div class="container">
2019-08-03 15:03:45 -04:00
<a id="back-to-help" href="#" data-target="Help">« Help</a>
2019-02-18 04:18:32 -05:00
2019-02-20 10:09:44 -05:00
<template v-if="version">
<h1 class="title">Release notes for {{ version }}</h1>
2019-02-18 04:18:32 -05:00
2019-02-20 10:09:44 -05:00
<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
2019-08-03 15:03:45 -04:00
:href="
`https://github.com/thelounge/thelounge/releases/tag/v${version}`
"
2019-02-20 10:09:44 -05:00
target="_blank"
2019-03-01 09:18:16 -05:00
rel="noopener"
2019-08-03 15:03:45 -04:00
>View release notes for this version on GitHub</a
>
2019-02-20 10:09:44 -05:00
</p>
</template>
</template>
<p v-else>Loading changelog</p>
2019-02-18 04:18:32 -05:00
</div>
</div>
</template>
<script>
import SidebarToggle from "../SidebarToggle.vue";
2019-02-18 04:18:32 -05:00
export default {
name: "Changelog",
components: {
SidebarToggle,
},
2019-08-03 15:03:45 -04:00
mounted() {},
2019-02-18 04:18:32 -05:00
};
</script>