Skip to content

Commit

Permalink
Show the latest version of the site if it's available
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Dec 26, 2021
1 parent 20ef392 commit 24c3fa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/components/website/WebsiteNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
<a :href="slmnggURL('')" class="nav-link">SLMN.GG</a>
</b-navbar-nav>
<b-navbar-nav v-else>
<a target="_blank" class="nav-link" href="https://slmn.statuspage.io/?utm_source=slmngg_nav">SLMN.GG Status</a>
<a v-if="$root.version" class="nav-link" target="_blank" href="https://github.com/slmnio/slmngg-sfc">SLMN.GG {{ $root.version }}</a>
<a target="_blank" class="nav-link" href="https://slmn.statuspage.io/?utm_source=slmngg_nav">Status</a>
</b-navbar-nav>
</b-collapse>
</b-navbar>
Expand Down
3 changes: 3 additions & 0 deletions website/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ const app = new Vue({
computed: {
minisiteEvent() {
return this.$store.getters.thing(`subdomain-${subdomain}`);
},
version() {
return process.env?.VUE_APP_SLMNGG_VERSION;
}
},
methods: {
Expand Down

0 comments on commit 24c3fa8

Please sign in to comment.