You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.2 KiB
48 lines
2.2 KiB
extends ../layouts/main
|
|
block content
|
|
|
|
include ../../comment/components/comment-review
|
|
|
|
.uk-margin.uk-width-xlarge
|
|
fieldset
|
|
legend Reported #{report.resourceType}
|
|
+renderCommentReview(report.resource)
|
|
|
|
.uk-margin
|
|
label(for="reason").uk-form-label.sr-only Reporter's note
|
|
.uk-card.uk-card-secondary.uk-card-small
|
|
#reason.uk-card-body= report.reason
|
|
div(uk-grid).uk-text-small.uk-text-muted
|
|
.uk-width-auto reporter: #[a(href=`/admin/user/${report.user._id}`)= report.user.username]
|
|
.uk-width-auto reported: #{moment(report.created).fromNow()}
|
|
.uk-width-auto author: #[a(href=`/admin/user/${report.resource.author._id}`)= report.resource.author.username]
|
|
.uk-width-auto category: #{report.category}
|
|
.uk-width-auto status: #{report.status}
|
|
|
|
div(uk-grid)
|
|
.uk-width-expand
|
|
div(uk-grid)
|
|
.uk-width-auto
|
|
form(method="POST", action= `/admin/content-report/${report._id}/action`, onsubmit="return dtp.app.submitForm(event, 'remove content');")
|
|
input(type="hidden", name="verb", value="dismiss")
|
|
button(
|
|
type="submit",
|
|
title="Dismiss this content report with no action",
|
|
).uk-button.dtp-button-primary
|
|
+renderLabeledIcon('fa-times', 'Dismiss')
|
|
.uk-width-auto
|
|
form(method="POST", action= `/admin/content-report/${report._id}/action`, onsubmit="return dtp.app.submitForm(event, 'remove content');")
|
|
input(type="hidden", name="verb", value="purge")
|
|
button(
|
|
type="submit",
|
|
title=`Dismiss this content report and purge all reports from ${report.user.username}`,
|
|
).uk-button.dtp-button-primary
|
|
+renderLabeledIcon('fa-bicycle', 'Purge')
|
|
.uk-width-auto
|
|
form(method="POST", action= `/admin/content-report/${report._id}/action`, onsubmit="return dtp.app.submitForm(event, 'remove content');")
|
|
input(type="hidden", name="verb", value="remove")
|
|
button(
|
|
type="submit",
|
|
title=`Remove the reported ${report.resourceType}`,
|
|
).uk-button.dtp-button-danger
|
|
+renderLabeledIcon('fa-trash', `Remove ${report.resourceType}`) |