About.vue 1.48 KB
Newer Older
1
<template>
Bat's avatar
Bat committed
2
  <div class="main pusher" v-title="'About This Instance'">
3
4
5
6
7
8
    <div class="ui vertical center aligned stripe segment">
      <div class="ui text container">
        <h1 class="ui huge header">
            <template v-if="instance.name.value">About {{ instance.name.value }}</template>
            <template v-else="instance.name.value">About this instance</template>
        </h1>
9
        <stats></stats>
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      </div>
    </div>
    <div class="ui vertical stripe segment">
      <p v-if="!instance.short_description.value && !instance.long_description.value">
        Unfortunately, owners of this instance did not yet take the time to complete this page.</p>
      <div
        v-if="instance.short_description.value"
        class="ui middle aligned stackable text container">
        <p>{{ instance.short_description.value }}</p>
      </div>
      <div
        v-if="instance.long_description.value"
        class="ui middle aligned stackable text container"
        v-html="$options.filters.markdown(instance.long_description.value)">
      </div>
    </div>
  </div>
</template>

<script>
import {mapState} from 'vuex'
31
import Stats from '@/components/instance/Stats'
32
33

export default {
34
35
36
  components: {
    Stats
  },
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  created () {
    this.$store.dispatch('instance/fetchSettings')
  },
  computed: {
    ...mapState({
      instance: state => state.instance.settings.instance
    })
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>