See #890: added link to admin url on actor links
This commit is contained in:
parent
a905a52601
commit
728160c71d
|
@ -1,5 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<span :title="actor.full_username">
|
<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">
|
||||||
<actor-avatar v-if="avatar" :actor="actor" />
|
<actor-avatar v-if="avatar" :actor="actor" />
|
||||||
{{ actor.full_username | truncate(30) }}
|
{{ actor.full_username | truncate(30) }}
|
||||||
</span>
|
</span>
|
||||||
|
@ -11,7 +15,8 @@ import {hashCode, intToRGB} from '@/utils/color'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
actor: {type: Object},
|
actor: {type: Object},
|
||||||
avatar: {type: Boolean, default: true}
|
avatar: {type: Boolean, default: true},
|
||||||
|
admin: {type: Boolean, default: false},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="summary">
|
<div class="summary">
|
||||||
<actor-link :actor="note.author"></actor-link>
|
<actor-link :admin="true" :actor="note.author"></actor-link>
|
||||||
<div class="date">
|
<div class="date">
|
||||||
<human-date :date="note.creation_date"></human-date>
|
<human-date :date="note.creation_date"></human-date>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div v-if="obj.submitter">
|
<div v-if="obj.submitter">
|
||||||
<actor-link :actor="obj.submitter" />
|
<actor-link :admin="true" :actor="obj.submitter" />
|
||||||
</div>
|
</div>
|
||||||
<div v-else="obj.submitter_email">
|
<div v-else="obj.submitter_email">
|
||||||
{{ obj.submitter_email }}
|
{{ obj.submitter_email }}
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div v-if="obj.assigned_to">
|
<div v-if="obj.assigned_to">
|
||||||
<actor-link :actor="obj.assigned_to" />
|
<actor-link :admin="true" :actor="obj.assigned_to" />
|
||||||
</div>
|
</div>
|
||||||
<translate v-else translate-context="*/*/*">N/A</translate>
|
<translate v-else translate-context="*/*/*">N/A</translate>
|
||||||
</td>
|
</td>
|
||||||
|
@ -129,6 +129,14 @@
|
||||||
<translate translate-context="*/*/*">{{ configs[target.type].label }}</translate>
|
<translate translate-context="*/*/*">{{ configs[target.type].label }}</translate>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr v-if="target.type !== 'account'">
|
||||||
|
<td>
|
||||||
|
<translate translate-context="*/*/*">Owner</translate>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<actor-link :admin="true" :actor="obj.target_owner"></actor-link>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr v-if="obj.target_state.is_local">
|
<tr v-if="obj.target_state.is_local">
|
||||||
<td>
|
<td>
|
||||||
<translate translate-context="Content/Moderation/*/Noun">Domain</translate>
|
<translate translate-context="Content/Moderation/*/Noun">Domain</translate>
|
||||||
|
@ -154,6 +162,10 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<h3>
|
||||||
|
<translate translate-context="*/*/*">Actions</translate>
|
||||||
|
|
||||||
|
</h3>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui stackable two column grid">
|
<div class="ui stackable two column grid">
|
||||||
|
|
Loading…
Reference in New Issue