Redesign abuse notification

This commit is contained in:
2023-01-02 14:35:36 +01:00
parent 169b746145
commit be13b12c22
4 changed files with 21 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ let block_form = {
name: "reporter", name: "reporter",
label: "Reporter", label: "Reporter",
type: "text", type: "text",
default_value: "Anonymous tip", default_value: "Anonymous",
}, },
], ],
submit_label: `<i class="icon">send</i> Submit`, submit_label: `<i class="icon">send</i> Submit`,

View File

@@ -578,12 +578,11 @@ const keyboard_event = evt => {
{#if ads_enabled} {#if ads_enabled}
<AdLeaderboard></AdLeaderboard> <AdLeaderboard></AdLeaderboard>
<TransferLimit/>
{:else if custom_footer} {:else if custom_footer}
<CustomBanner src={custom_footer} link={custom_footer_link}></CustomBanner> <CustomBanner src={custom_footer} link={custom_footer_link}></CustomBanner>
{/if} {/if}
<TransferLimit/>
<Modal bind:this={details_window} on:is_visible={e => {details_visible = e.detail}} title="File details" width="1000px"> <Modal bind:this={details_window} on:is_visible={e => {details_visible = e.detail}} title="File details" width="1000px">
<DetailsWindow file={file}></DetailsWindow> <DetailsWindow file={file}></DetailsWindow>
</Modal> </Modal>

View File

@@ -11,12 +11,24 @@ let file = {
</script> </script>
<br/> <br/>
<TextBlock center={true}> <TextBlock width="750px">
<h1>Unavailable for legal reasons</h1> <h1>Unavailable for legal reasons</h1>
<p> <p>
This file has received an abuse report and was taken down. This file has been removed for violating pixeldrain's
<a href="/about#content-policy">content policy</a>. Type of abuse:
{file.abuse_type}.
</p> </p>
<p> <p>
Type of abuse: {file.abuse_type}. Reporter: {file.abuse_reporter_name}. {#if file.abuse_reporter_name === "User submitted reports"}
The file was reported by users of pixeldrain with the report button
in the toolbar.
{/if}
</p>
<p>
Pixeldrain has zero tolerance towards abuse. The IP address this file
originated from has been banned and is no longer able to upload files to
pixeldrain.
</p> </p>
</TextBlock> </TextBlock>

View File

@@ -51,18 +51,13 @@ onMount(async () => {
<div class="table_scroll"> <div class="table_scroll">
<table> <table>
<tr> <tr>
<td>File</td>
<td>Reason</td> <td>Reason</td>
<td>Reporter</td>
<td>Ban date</td> <td>Ban date</td>
<td>Expiry date</td> <td>Expiry date</td>
<td>File</td>
</tr> </tr>
{#each result.offences as offence (offence.ban_time)} {#each result.offences as offence (offence.ban_time)}
<tr> <tr>
<td>{offence.reason}</td>
<td>{offence.reporter}</td>
<td>{formatDate(offence.ban_time, false, false, false)}</td>
<td>{formatDate(offence.expire_time, false, false, false)}</td>
<td> <td>
{#if offence.file_public_id} {#if offence.file_public_id}
<a href="/u/{offence.file_public_id}" target="_blank" rel="noreferrer"> <a href="/u/{offence.file_public_id}" target="_blank" rel="noreferrer">
@@ -70,6 +65,9 @@ onMount(async () => {
</a> </a>
{/if} {/if}
</td> </td>
<td>{offence.reason}</td>
<td>{formatDate(offence.ban_time, false, false, false)}</td>
<td>{formatDate(offence.expire_time, false, false, false)}</td>
</tr> </tr>
{/each} {/each}
</table> </table>