Verified Commit 728160c7 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #890: added link to admin url on actor links

parent a905a526
<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" />
&nbsp;{{ actor.full_username | truncate(30) }}
</router-link>
<span v-else :title="actor.full_username">
<actor-avatar v-if="avatar" :actor="actor" />
&nbsp;{{ actor.full_username | truncate(30) }}
</span>
......@@ -11,7 +15,8 @@ import {hashCode, intToRGB} from '@/utils/color'
export default {
props: {
actor: {type: Object},
avatar: {type: Boolean, default: true}
avatar: {type: Boolean, default: true},
admin: {type: Boolean, default: false},
}
}
</script>
......@@ -6,7 +6,7 @@
</div>
<div class="content">
<div class="summary">
<actor-link :actor="note.author"></actor-link>
<actor-link :admin="true" :actor="note.author"></actor-link>
<div class="date">
<human-date :date="note.creation_date"></human-date>
</div>
......
......@@ -17,7 +17,7 @@
</td>
<td>
<div v-if="obj.submitter">
<actor-link :actor="obj.submitter" />
<actor-link :admin="true" :actor="obj.submitter" />
</div>
<div v-else="obj.submitter_email">
{{ obj.submitter_email }}
......@@ -68,7 +68,7 @@
</td>
<td>
<div v-if="obj.assigned_to">
<actor-link :actor="obj.assigned_to" />
<actor-link :admin="true" :actor="obj.assigned_to" />
</div>
<translate v-else translate-context="*/*/*">N/A</translate>
</td>
......@@ -129,6 +129,14 @@
<translate translate-context="*/*/*">{{ configs[target.type].label }}</translate>
</td>
</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">
<td>
<translate translate-context="Content/Moderation/*/Noun">Domain</translate>
......@@ -154,6 +162,10 @@
</tr>
</tbody>
</table>
<h3>
<translate translate-context="*/*/*">Actions</translate>
</h3>
</aside>
</div>
<div class="ui stackable two column grid">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment