mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
feat(web): show user quota on server stats page (#7591)
This commit is contained in:
parent
8ce18b3403
commit
29a4389aac
@ -102,6 +102,9 @@
|
|||||||
<td class="w-1/4 text-ellipsis px-2 text-sm">{user.videos.toLocaleString($locale)}</td>
|
<td class="w-1/4 text-ellipsis px-2 text-sm">{user.videos.toLocaleString($locale)}</td>
|
||||||
<td class="w-1/4 text-ellipsis px-2 text-sm">
|
<td class="w-1/4 text-ellipsis px-2 text-sm">
|
||||||
{asByteUnitString(user.usage, $locale, 0)}
|
{asByteUnitString(user.usage, $locale, 0)}
|
||||||
|
{#if user.quotaSizeInBytes}
|
||||||
|
/ {asByteUnitString(user.quotaSizeInBytes, $locale, 0)}
|
||||||
|
{/if}
|
||||||
<span class="text-immich-primary dark:text-immich-dark-primary">
|
<span class="text-immich-primary dark:text-immich-dark-primary">
|
||||||
{#if user.quotaSizeInBytes}
|
{#if user.quotaSizeInBytes}
|
||||||
({((user.usage / user.quotaSizeInBytes) * 100).toFixed(0)}%)
|
({((user.usage / user.quotaSizeInBytes) * 100).toFixed(0)}%)
|
||||||
|
Loading…
Reference in New Issue
Block a user