From b9100944430b0b0108af1237003562f4c44b1e8b Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 1 Jul 2020 16:42:36 -0700 Subject: [PATCH] Show the counts of tags and tag parents / children. Note that children is actually descendants. --- frontends/etiquette_flask/templates/tags.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontends/etiquette_flask/templates/tags.html b/frontends/etiquette_flask/templates/tags.html index 75bfc22..4581a0a 100644 --- a/frontends/etiquette_flask/templates/tags.html +++ b/frontends/etiquette_flask/templates/tags.html @@ -143,7 +143,7 @@ h2, h3 {% set parents = specific_tag.get_parents() %} {% if parents %}
-

Parents

+

{{parents|length}} Parents

{% endif %} - {% set tag_list_header = "

Children

" %} {% else %} - {% set tag_list_header = "

Tags

" %} {% endif %} {% if tags or not specific_tag %}
- {{ tag_list_header | safe }} + {% if specific_tag %} +

{{tags|length}} Descendants

+ {% else %} +

{{tags|length}} Tags

+ {% endif %}