From 4e5d80d84bda256f8dd65ce49decfed898c431c8 Mon Sep 17 00:00:00 2001 From: Fornax Date: Sat, 24 Dec 2022 12:42:23 +0100 Subject: [PATCH] Improve address reputation widget styling --- svelte/src/home_page/AddressReputation.svelte | 126 +++++++++++------- 1 file changed, 77 insertions(+), 49 deletions(-) diff --git a/svelte/src/home_page/AddressReputation.svelte b/svelte/src/home_page/AddressReputation.svelte index 3f1dbb0..1cb13ef 100644 --- a/svelte/src/home_page/AddressReputation.svelte +++ b/svelte/src/home_page/AddressReputation.svelte @@ -1,5 +1,6 @@ {#if result !== false && offences > 0} -
- {#if result.banned === true} -

- Your IP address ({result.address}) has been banned from - uploading to pixeldrain due to violation of the - content policy. Below is a - list of files originating from your IP address which have been - blocked: -

- {:else if offences > 0} -

- Your IP address ({result.address}) has received copyright - strikes. At 10 copyright strikes your IP address will be banned - and you will be unable to upload files to pixeldrain. Below is a - list of files originating from your IP address which have been - blocked: -

- {/if} +
+ +
+ {#if result.banned === true} + Your IP address has been banned, click for details + {:else} + Your IP address has received a copyright strike, click for details + {/if} +
+ {#if result.banned === true} +

+ Your IP address ({result.address}) has been banned from + uploading to pixeldrain due to violation of the + content policy. Below is a + list of files originating from your IP address which have been + blocked: +

+ {:else} +

+ Your IP address ({result.address}) has received copyright + strikes. At 10 copyright strikes your IP address will be banned + and you will be unable to upload files to pixeldrain. Below is a + list of files originating from your IP address which have been + blocked: +

+ {/if} -
- - - - - - - - - {#each result.offences as offence (offence.ban_time)} +
+
ReasonReporterBan dateExpiry dateFile
- - - - - + + + + + - {/each} -
{offence.reason}{offence.reporter}{formatDate(offence.ban_time, false, false, false)}{formatDate(offence.expire_time, false, false, false)} - {#if offence.file_public_id} - - {offence.file_name} - - {/if} - ReasonReporterBan dateExpiry dateFile
-
+ {#each result.offences as offence (offence.ban_time)} + + {offence.reason} + {offence.reporter} + {formatDate(offence.ban_time, false, false, false)} + {formatDate(offence.expire_time, false, false, false)} + + {#if offence.file_public_id} + + {offence.file_name} + + {/if} + + + {/each} + + -

- If you would like to dispute your IP ban you can mail me at - support@pixeldrain.com. Please do not mail unless you have a good - reason. If you do not provide a valid reason why the IP ban should - be reversed your e-mail will be ignored. And do not forget to put - your IP address ({result.address}) in the e-mail. -

+

+ If you would like to dispute your IP ban you can mail me at + support@pixeldrain.com. Please do not mail unless you have a good + reason. If you do not provide a valid reason why the IP ban should + be reversed your e-mail will be ignored. And do not forget to put + your IP address ({result.address}) in the e-mail. +

+
{/if} + +