summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components/acct.vue
blob: 2b5efe609c75a9c5cab22873100bf6295fc49112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
<span class="mk-acct">
	<span class="name">@{{ user.username }}</span>
	<span class="host" v-if="user.host || detail">@{{ user.host || host }}</span>
</span>
</template>

<script lang="ts">
import Vue from 'vue';
import { host } from '../../../config';
export default Vue.extend({
	props: ['user', 'detail'],
	data() {
		return {
			host
		};
	}
});
</script>

<style lang="stylus" scoped>
.mk-acct
	> .host
		opacity 0.5
</style>