summaryrefslogtreecommitdiff
path: root/jimbrella/templates
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-02-02 11:33:48 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-02-02 11:33:48 +0800
commitac73e8544697a63370b4728188d59df809faf197 (patch)
treebcb2f2aebb13ee8fe31d40616dc7fc3a83bdb3fd /jimbrella/templates
parent3ced6cc3bd7759fcab4c193d72bea09054d4b742 (diff)
Umbrella count on admin page is done in core, not Jinja
Diffstat (limited to 'jimbrella/templates')
-rw-r--r--jimbrella/templates/admin/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/jimbrella/templates/admin/index.html b/jimbrella/templates/admin/index.html
index 940f2c2..73ae5f6 100644
--- a/jimbrella/templates/admin/index.html
+++ b/jimbrella/templates/admin/index.html
@@ -15,7 +15,7 @@
<div class="banner overdue">
<h2 class="banner-heading">Overdue</h2>
<span class="proportion">
- <strong class="big">{{ overdue|length }}</strong> / {{ umbrellas|length }}
+ <strong class="big">{{ overdue }}</strong> / {{ umbrellas }}
</span>
<div class="table-container">
{% if mobile %}
@@ -64,13 +64,13 @@
<div class="tile lent">
<h2 class="tile-heading">Lent</h2>
<span class="proportion">
- <strong class="big">{{ lent|length }}</strong> / {{ umbrellas|length }}
+ <strong class="big">{{ lent }}</strong> / {{ umbrellas }}
</span>
</div>
<div class="tile available">
<h2 class="tile-heading">Available</h2>
<span class="proportion">
- <strong class="big">{{ available|length }}</strong> / {{ umbrellas|length }}
+ <strong class="big">{{ available }}</strong> / {{ umbrellas }}
</span>
</div>
</div>