Make abuse report window more user friendly
This commit is contained in:
@@ -4,7 +4,7 @@ function AbuseReportWindow(viewer) {
|
||||
this.modal = new Modal(
|
||||
document.getElementById("file_viewer"),
|
||||
() => { this.toggle() },
|
||||
"Report abuse", "600px", "auto",
|
||||
"Report abuse", "650px", "auto",
|
||||
)
|
||||
|
||||
this.btnReportAbuse = document.getElementById("btn_report_abuse")
|
||||
|
@@ -1,7 +1,7 @@
|
||||
function AbuseViewer(viewer, file, next) {
|
||||
this.viewer = viewer
|
||||
this.file = file
|
||||
this.next = next
|
||||
this.file = file
|
||||
this.next = next
|
||||
|
||||
this.container = document.createElement("div")
|
||||
this.container.classList = "image-container"
|
||||
@@ -12,17 +12,17 @@ function AbuseViewer(viewer, file, next) {
|
||||
this.container.appendChild(this.title)
|
||||
|
||||
this.description = document.createElement("p")
|
||||
this.description.innerText = "This file has received an abuse report and "+
|
||||
this.description.innerText = "This file has received an abuse report and " +
|
||||
"was taken down."
|
||||
this.container.appendChild(this.description)
|
||||
|
||||
this.description2 = document.createElement("p")
|
||||
this.description2.innerText = "Type of abuse: '"+file.abuse_type+"'. "+
|
||||
"Reporter: '"+file.abuse_reporter_name+"'."
|
||||
this.description2.innerText = "Type of abuse: " + file.abuse_type + ". " +
|
||||
"Reporter: " + file.abuse_reporter_name + "."
|
||||
this.container.appendChild(this.description2)
|
||||
}
|
||||
|
||||
AbuseViewer.prototype.render = function(parent) {
|
||||
AbuseViewer.prototype.render = function (parent) {
|
||||
parent.appendChild(this.container)
|
||||
|
||||
// Disable the download button
|
||||
@@ -30,7 +30,7 @@ AbuseViewer.prototype.render = function(parent) {
|
||||
this.viewer.toolbar.btnDownload.style.display = "none"
|
||||
}
|
||||
|
||||
AbuseViewer.prototype.destroy = function(parent) {
|
||||
AbuseViewer.prototype.destroy = function (parent) {
|
||||
// Restore the download button
|
||||
this.viewer.toolbar.btnDownload.style.display = this.btnDownloadDisplay
|
||||
}
|
||||
|
@@ -265,6 +265,16 @@
|
||||
|
||||
table {width: auto !important;}
|
||||
|
||||
/* Abuse report label*/
|
||||
.abuse_type_form > label {
|
||||
display: block;
|
||||
border-bottom: 1px var(--layer_2_color_border) solid;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.abuse_type_form > label:last-of-type {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
|
||||
/* ====================
|
||||
|| LIST NAVIGATOR ||
|
||||
|
@@ -325,18 +325,30 @@
|
||||
</p>
|
||||
<form class="abuse_type_form" style="width: 100%">
|
||||
<h3>Abuse type</h3>
|
||||
<input type="radio" id="abuse_type_terrorism" name="abuse_type" value="terrorism">
|
||||
<label for="abuse_type_terrorism">Terrorism</label>
|
||||
<br/>
|
||||
<input type="radio" id="abuse_type_gore" name="abuse_type" value="gore">
|
||||
<label for="abuse_type_gore">Gore</label>
|
||||
<br/>
|
||||
<input type="radio" id="abuse_type_child_abuse" name="abuse_type" value="child_abuse">
|
||||
<label for="abuse_type_child_abuse">Child abuse</label>
|
||||
<br/>
|
||||
<input type="radio" id="abuse_type_malware" name="abuse_type" value="malware">
|
||||
<label for="abuse_type_malware">Malware</label>
|
||||
<br/>
|
||||
<p>
|
||||
Which type of abuse is shown in this file? Pick the most
|
||||
appropriate one.
|
||||
</p>
|
||||
<label for="abuse_type_terrorism">
|
||||
<input type="radio" id="abuse_type_terrorism" name="abuse_type" value="terrorism">
|
||||
<b>Terrorism</b>: Videos, images or audio fragments showing
|
||||
the use of intentional violence to achieve political aims.
|
||||
</label>
|
||||
<label for="abuse_type_gore">
|
||||
<input type="radio" id="abuse_type_gore" name="abuse_type" value="gore">
|
||||
<b>Gore</b>: Graphic and shocking videos or images depicting
|
||||
severe harm to humans (or animals).
|
||||
</label>
|
||||
<label for="abuse_type_child_abuse">
|
||||
<input type="radio" id="abuse_type_child_abuse" name="abuse_type" value="child_abuse">
|
||||
<b>Child abuse</b>: Videos or images depicting inappropriate
|
||||
touching or nudity of minors.
|
||||
</label>
|
||||
<label for="abuse_type_malware">
|
||||
<input type="radio" id="abuse_type_malware" name="abuse_type" value="malware">
|
||||
<b>Malware</b>: Software programs designed to cause harm to
|
||||
computer systems.
|
||||
</label>
|
||||
<!--
|
||||
<h3>E-mail address</h3>
|
||||
<p>
|
||||
@@ -352,7 +364,7 @@
|
||||
<div class="abuse_report_notification" style="display: none;"></div>
|
||||
<p>
|
||||
Abuse reports are manually reviewed. Normally this shouldn't
|
||||
take more than 24 hours. But during busy periods it can take
|
||||
take more than 24 hours. During busy periods it can take
|
||||
longer.
|
||||
</p>
|
||||
<div style="text-align: right;">
|
||||
|
@@ -286,7 +286,11 @@
|
||||
</div>
|
||||
<div>
|
||||
<div class="feat_label"><a href="javascript:void(0);" onclick="return explainDirectLinking();">Direct linking</a></div>
|
||||
<div class="feat_pro">Rate limiting mode will be enabled when a file has 3 times more downloads than views</div>
|
||||
<div class="feat_pro">
|
||||
Rate limiting mode will be enabled when a file has 3
|
||||
times more downloads than views. Pro users will never be
|
||||
asked to fill in a captcha
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div></div>
|
||||
|
Reference in New Issue
Block a user