diff --git a/svelte/src/file_viewer/DetailsWindow.svelte b/svelte/src/file_viewer/DetailsWindow.svelte index 49d3e79..6b071e6 100644 --- a/svelte/src/file_viewer/DetailsWindow.svelte +++ b/svelte/src/file_viewer/DetailsWindow.svelte @@ -93,6 +93,8 @@ let update_chart = (timespan, interval) => { }) } +let download_info = false + onMount(() => { chart.data().datasets = [ { @@ -151,20 +153,31 @@ onMount(() => { {(file.bandwidth_used_paid/file.size).toFixed(1)}x file size - - Unique downloads + + + Unique downloads + + {formatThousands(file.downloads)} - - - The unique download counter only counts downloads once per IP - address. So this number shows how many individual people have - attempted to download the file. The download counter on the - toolbar on the other hand shows how many real downloads the file - has had. Real downloads are counted by dividing the total - bandwidth usage by the size of the file. - - + {#if download_info} + + + The unique download counter only counts downloads once per IP + address. So this number shows how many individual people have + attempted to download the file. The download counter on the + toolbar on the other hand shows how many real downloads the file + has had. Real downloads are counted by dividing the total + bandwidth usage by the size of the file. + + + {/if} Upload Date {formatDate(file.date_upload, true, true, true)} @@ -199,12 +212,6 @@ onMount(() => { Charts rendered by the amazing Chart.js.

-

About

-

- Pixeldrain is a file sharing platform. - Visit the home page for more information. -

-

Keyboard Controls

File Shortcuts