show inf when displaying storage limit and there is no limit

This commit is contained in:
2026-12-05 16:40:42 -05:00
parent f943f4d95d
commit 14939090d5
3 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -30,7 +30,15 @@
<label for="type-paste">paste</label>
{{if or .StorageUsage .StorageLimit}}
<span class="muted" style="margin-left: auto; width: fit-content;">
{{.StorageUsage}}{{if .StorageLimit}} / {{.StorageLimit}}{{end}} used
<!-- geez this looks so ugly -->
{{.StorageUsage}}
{{if .DisplayStorageLimit}} /
{{if .StorageLimit}}
inf
{{else}}
{{.StorageLimit}}
{{end}}
{{end}} used
</span>
{{end}}
<div class="file-panel">