Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jovuit
funkwhale
Commits
728160c7
Verified
Commit
728160c7
authored
Aug 29, 2019
by
Eliot Berriot
Browse files
See #890: added link to admin url on actor links
parent
a905a526
Changes
3
Hide whitespace changes
Inline
Side-by-side
front/src/components/common/ActorLink.vue
View file @
728160c7
<
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
.
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
>
front/src/components/manage/moderation/NotesThread.vue
View file @
728160c7
...
...
@@ -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>
...
...
front/src/components/manage/moderation/ReportCard.vue
View file @
728160c7
...
...
@@ -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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment