Skip to content

Commit

Permalink
feat(web): show user quota on server stats page (immich-app#7591)
Browse files Browse the repository at this point in the history
  • Loading branch information
samholton authored Mar 3, 2024
1 parent 8ce18b3 commit 29a4389
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
{asByteUnitString(user.usage, $locale, 0)}
{#if user.quotaSizeInBytes}
/ {asByteUnitString(user.quotaSizeInBytes, $locale, 0)}
{/if}
<span class="text-immich-primary dark:text-immich-dark-primary">
{#if user.quotaSizeInBytes}
({((user.usage / user.quotaSizeInBytes) * 100).toFixed(0)}%)
Expand Down

0 comments on commit 29a4389

Please sign in to comment.