Footer.vue 1.32 KB
Newer Older
les's avatar
les committed
1
<template lang="pug">
les's avatar
les committed
2
  v-footer(color='secondary')
3
4
    v-btn(color='primary' text href='https://gancio.org') Gancio {{settings.version}}
    v-btn(v-for='link in settings.footerLinks'
les's avatar
minor    
les committed
5
      :key='link.label' color='primary' text :to='link.href') {{link.label}}
les's avatar
les committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

    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}}

22
23
24
25
    //- 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
les's avatar
les committed
26
27
28
29
30
31
32
33
</template>
<script>
import { mapState } from 'vuex'

export default {
  computed: mapState(['settings'])
}
</script>