Use badge template tag for numeric values

This commit is contained in:
jeremystretch
2021-08-23 16:47:08 -04:00
parent 542e01775e
commit e890944160
5 changed files with 26 additions and 10 deletions

View File

@@ -38,8 +38,10 @@
<div class="list-group list-group-flush">
{% for obj_type in results %}
<a href="#{{ obj_type.name|lower }}" class="list-group-item">
<div class="float-end">
{% badge obj_type.table.page.paginator.count %}
</div>
{{ obj_type.name|bettertitle }}
<span class="badge bg-primary">{{ obj_type.table.page.paginator.count }}</span>
</a>
{% endfor %}
</div>