2020-11-16 13:22:04 -08:00
|
|
|
<template>
|
2020-11-17 10:21:49 -08:00
|
|
|
<section>
|
|
|
|
<div class="d-none d-md-inline-flex btn-group btn-block mb-2">
|
2021-01-17 11:43:21 -08:00
|
|
|
<a v-for="{name, icon, route} in links" :href="`/${config.nouns.route}/${route}`" class="btn btn-outline-primary">
|
2020-11-17 10:21:49 -08:00
|
|
|
<Icon :v="icon"/>
|
|
|
|
<T>nouns.{{name}}.header</T>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="d-block d-md-none btn-group-vertical btn-block mb-2">
|
2021-01-17 11:43:21 -08:00
|
|
|
<a v-for="{name, icon, route} in links" :href="`/${config.nouns.route}/${route}`" class="btn btn-outline-primary">
|
2020-11-17 10:21:49 -08:00
|
|
|
<Icon :v="icon"/>
|
|
|
|
<T>nouns.{{name}}.header</T>
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-11-16 13:22:04 -08:00
|
|
|
</section>
|
|
|
|
</template>
|
2020-11-17 10:21:49 -08:00
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
2021-01-17 11:43:21 -08:00
|
|
|
const links = [
|
|
|
|
{name: 'neuterNouns', icon: 'deer', route: 'neutratywy'},
|
|
|
|
{name: 'dukajNouns', icon: 'ghost', route: 'dukatywy'},
|
|
|
|
{name: 'personNouns', icon: 'user-friends', route: 'osobatywy'},
|
|
|
|
];
|
2020-12-18 09:22:35 -08:00
|
|
|
|
|
|
|
if (this.config.nouns.inclusive.enabled) {
|
2021-01-17 11:43:21 -08:00
|
|
|
links.push({name: 'inclusive', icon: 'book-heart', route: this.config.nouns.inclusive.route});
|
2020-12-18 09:22:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (this.config.nouns.terms.enabled) {
|
2021-01-17 11:43:21 -08:00
|
|
|
links.push({name: 'terms', icon: 'flag', route: this.config.nouns.terms.route});
|
2020-12-18 09:22:35 -08:00
|
|
|
}
|
|
|
|
|
2020-11-17 10:21:49 -08:00
|
|
|
return {
|
2020-12-18 09:22:35 -08:00
|
|
|
links,
|
2020-11-17 10:21:49 -08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|