gancio-upstream/components/Footer.vue

34 lines
1.4 KiB
Vue
Raw Normal View History

2020-07-25 21:41:22 +02:00
<template lang="pug">
2021-03-24 21:05:48 +01:00
v-footer(color='secondary')
2021-05-19 16:14:56 +02:00
v-btn(color='primary' text href='https://gancio.org' target='_blank') Gancio <small>{{settings.version}}</small>
v-btn(v-for='link in settings.footerLinks'
2021-04-26 23:18:16 +02:00
:key='link.label' color='primary' text :to='link.href') {{link.label}}
2020-11-17 00:31:55 +01:00
v-menu(v-if='settings.enable_trusted_instances && settings.trusted_instances && settings.trusted_instances.length'
offset-y bottom open-on-hover transition="slide-y-transition")
template(v-slot:activator="{ on, attrs }")
v-btn(v-bind='attrs' v-on='on' color='primary' text) {{$t('common.places')}}
v-list
v-list-item(v-for='instance in settings.trusted_instances'
:key='instance.name'
:href='instance.url'
two-line)
v-list-item-avatar
v-img(:src='`${instance.url}/favicon.ico`')
v-list-item-content
v-list-item-title {{instance.name}}
v-list-item-subtitle {{instance.label}}
//- v-btn(v-if='settings.enable_federation' text rel='me' @click.prevent='showFollowMe=true') follow me
//- v-btn(nuxt to='/about' text) about
//- v-btn(href='https://blog.gancio.org' text) blog
//- v-btn(href='https://framagit.org/les/gancio' text) source
2020-07-25 21:41:22 +02:00
</template>
<script>
import { mapState } from 'vuex'
export default {
computed: mapState(['settings'])
}
</script>