show inf when displaying storage limit and there is no limit
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user