funkwhale/front/src/views/content/Base.vue

28 lines
895 B
Vue

<template>
<main class="main pusher" v-title="labels.title">
<nav class="ui secondary pointing menu" role="navigation" :aria-label="labels.secondaryMenu">
<router-link
class="ui item"
:to="{name: 'content.libraries.index'}"><translate translate-context="Menu/Library/Tab.Link">Libraries</translate></router-link>
<router-link
class="ui item"
:to="{name: 'content.libraries.files'}"><translate translate-context="Menu/Library/Tab.Link">Tracks</translate></router-link>
</nav>
<router-view :key="$route.fullPath"></router-view>
</main>
</template>
<script>
export default {
computed: {
labels() {
let title = this.$pgettext('Head/Library/Title', "Add content")
let secondaryMenu = this.$pgettext('Menu/*/Hidden text', "Secondary menu")
return {
title,
secondaryMenu
}
}
}
}
</script>