##// END OF EJS Templates
Show only non-zero thread count in the tag detailed info
neko259 -
r1397:b2b4d7e6 default
parent child Browse files
Show More
@@ -73,9 +73,17 b''
73 73 <p>{{ tag.get_description|safe }}</p>
74 74 {% endif %}
75 75 <p>
76 {% blocktrans count count=tag.get_active_thread_count %}{{ count }} active thread{% plural %}active threads{% endblocktrans %},
77 {% blocktrans count count=tag.get_bumplimit_thread_count %}{{ count }} thread in bumplimit{% plural %} threads in bumplimit{% endblocktrans %},
78 {% blocktrans count count=tag.get_archived_thread_count %}{{ count }} archived thread{% plural %}archived threads{% endblocktrans %},
76 {% with active_count=tag.get_active_thread_count bumplimit_count=tag.get_bumplimit_thread_count archived_count=tag.get_archived_thread_count %}
77 {% if active_count %}
78 {% blocktrans count count=active_count %}{{ count }} active thread{% plural %}active threads{% endblocktrans %},
79 {% endif %}
80 {% if bumplimit_count %}
81 {% blocktrans count count=bumplimit_count %}{{ count }} thread in bumplimit{% plural %} threads in bumplimit{% endblocktrans %},
82 {% endif %}
83 {% if archived_count %}
84 {% blocktrans count count=archived_count %}{{ count }} archived thread{% plural %}archived threads{% endblocktrans %},
85 {% endif %}
86 {% endwith %}
79 87 {% blocktrans count count=tag.get_post_count %}{{ count }} message{% plural %}messages{% endblocktrans %}.
80 88 </p>
81 89 {% if tag.get_all_parents %}
General Comments 0
You need to be logged in to leave comments. Login now