Sharkey/src/client/app/common/views/components/acct.vue

26 lines
442 B
Vue
Raw Normal View History

2018-05-17 22:31:30 -07:00
<template>
<span class="mk-acct">
<span class="name">@{{ user.username }}</span>
2018-09-05 11:21:11 -07:00
<span class="host" v-if="user.host || detail">@{{ user.host || host }}</span>
2018-05-17 22:31:30 -07:00
</span>
</template>
<script lang="ts">
import Vue from 'vue';
2018-09-05 11:21:11 -07:00
import { host } from '../../../config';
2018-05-17 22:31:30 -07:00
export default Vue.extend({
2018-09-05 11:21:11 -07:00
props: ['user', 'detail'],
data() {
return {
host
};
}
2018-05-17 22:31:30 -07:00
});
</script>
<style lang="stylus" scoped>
.mk-acct
> .host
opacity 0.5
</style>