2018-09-06 18:35:02 +00:00
|
|
|
<template>
|
2019-08-29 14:14:54 +00:00
|
|
|
<router-link :to="{name: 'manage.moderation.accounts.detail', params: {id: actor.full_username}}" v-if="admin" :title="actor.full_username">
|
|
|
|
<actor-avatar v-if="avatar" :actor="actor" />
|
|
|
|
{{ actor.full_username | truncate(30) }}
|
|
|
|
</router-link>
|
|
|
|
<span v-else :title="actor.full_username">
|
2018-09-13 15:18:23 +00:00
|
|
|
<actor-avatar v-if="avatar" :actor="actor" />
|
2018-09-06 18:35:02 +00:00
|
|
|
{{ actor.full_username | truncate(30) }}
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {hashCode, intToRGB} from '@/utils/color'
|
|
|
|
|
|
|
|
export default {
|
2018-09-13 15:18:23 +00:00
|
|
|
props: {
|
|
|
|
actor: {type: Object},
|
2019-08-29 14:14:54 +00:00
|
|
|
avatar: {type: Boolean, default: true},
|
|
|
|
admin: {type: Boolean, default: false},
|
2018-09-06 18:35:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|