# HG changeset patch # User neko259 # Date 2015-11-12 16:49:55 # Node ID b2b4d7e687abfaea1e09e10f89152df079f24528 # Parent 52abbcdea7b72e0ee08f41e2e427f2f69aa694b3 Show only non-zero thread count in the tag detailed info diff --git a/boards/templates/boards/all_threads.html b/boards/templates/boards/all_threads.html --- a/boards/templates/boards/all_threads.html +++ b/boards/templates/boards/all_threads.html @@ -73,9 +73,17 @@

{{ tag.get_description|safe }}

{% endif %}

- {% blocktrans count count=tag.get_active_thread_count %}{{ count }} active thread{% plural %}active threads{% endblocktrans %}, - {% blocktrans count count=tag.get_bumplimit_thread_count %}{{ count }} thread in bumplimit{% plural %} threads in bumplimit{% endblocktrans %}, - {% blocktrans count count=tag.get_archived_thread_count %}{{ count }} archived thread{% plural %}archived threads{% endblocktrans %}, + {% with active_count=tag.get_active_thread_count bumplimit_count=tag.get_bumplimit_thread_count archived_count=tag.get_archived_thread_count %} + {% if active_count %} + {% blocktrans count count=active_count %}{{ count }} active thread{% plural %}active threads{% endblocktrans %}, + {% endif %} + {% if bumplimit_count %} + {% blocktrans count count=bumplimit_count %}{{ count }} thread in bumplimit{% plural %} threads in bumplimit{% endblocktrans %}, + {% endif %} + {% if archived_count %} + {% blocktrans count count=archived_count %}{{ count }} archived thread{% plural %}archived threads{% endblocktrans %}, + {% endif %} + {% endwith %} {% blocktrans count count=tag.get_post_count %}{{ count }} message{% plural %}messages{% endblocktrans %}.

{% if tag.get_all_parents %}