2021-01-11 09:32:58 -08:00
|
|
|
<template>
|
|
|
|
<div class="Report">
|
2021-01-27 03:13:10 -08:00
|
|
|
<div class="reported-user">
|
|
|
|
<span>{{ $t('report.reported_user') }}</span>
|
|
|
|
<router-link :to="generateUserProfileLink(report.acct)">
|
|
|
|
@{{ report.acct.screen_name }}
|
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
<div class="reporter">
|
|
|
|
<span>{{ $t('report.reporter') }}</span>
|
|
|
|
<router-link :to="generateUserProfileLink(report.actor)">
|
|
|
|
@{{ report.actor.screen_name }}
|
|
|
|
</router-link>
|
|
|
|
</div>
|
2021-01-18 05:26:08 -08:00
|
|
|
<div class="report-state">
|
2021-01-27 03:13:10 -08:00
|
|
|
<span>{{ $t('report.state') }}</span>
|
2022-03-20 01:31:36 -07:00
|
|
|
<Select
|
|
|
|
:id="report-state"
|
|
|
|
v-model="state"
|
|
|
|
class="form-control"
|
2021-01-18 05:26:08 -08:00
|
|
|
>
|
2022-03-20 01:31:36 -07:00
|
|
|
<option
|
|
|
|
v-for="state in ['open', 'closed', 'resolved']"
|
|
|
|
:key="state"
|
|
|
|
:value="state"
|
2021-01-18 05:26:08 -08:00
|
|
|
>
|
2022-03-20 01:31:36 -07:00
|
|
|
{{ $t('report.state_' + state) }}
|
|
|
|
</option>
|
|
|
|
</Select>
|
2021-01-18 05:26:08 -08:00
|
|
|
</div>
|
2021-01-11 09:32:58 -08:00
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
|
|
|
<div
|
|
|
|
class="report-content"
|
|
|
|
v-html="report.content"
|
|
|
|
/>
|
|
|
|
<div v-if="report.statuses.length">
|
|
|
|
<small>{{ $t('report.reported_statuses') }}</small>
|
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
|
|
|
<router-link
|
|
|
|
v-for="status in report.statuses"
|
|
|
|
:key="status.id"
|
|
|
|
:to="{ name: 'conversation', params: { id: status.id } }"
|
|
|
|
class="reported-status"
|
|
|
|
>
|
|
|
|
<div class="reported-status-heading">
|
|
|
|
<span class="reported-status-name">{{ status.user.name }}</span>
|
|
|
|
<Timeago
|
|
|
|
:time="status.created_at"
|
|
|
|
:auto-update="240"
|
|
|
|
class="faint"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<status-content :status="status" />
|
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
<div v-if="report.notes.length">
|
|
|
|
<small>{{ $t('report.notes') }}</small>
|
|
|
|
<div
|
|
|
|
v-for="note in report.notes"
|
|
|
|
:key="note.id"
|
|
|
|
class="note"
|
|
|
|
>
|
|
|
|
<span>{{ note.content }}</span>
|
|
|
|
<Timeago
|
|
|
|
:time="note.created_at"
|
|
|
|
:auto-update="240"
|
|
|
|
class="faint"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./report.js"></script>
|
|
|
|
<style src="./report.scss" lang="scss"></style>
|