Show count in title again.

This commit is contained in:
flash 2019-05-01 22:34:36 +02:00
parent 9704bd3b54
commit 2f06eedb10
2 changed files with 3 additions and 3 deletions

View file

@ -229,12 +229,12 @@
{% endif %}
{% endmacro %}
{% macro forum_topic_listing(topics) %}
{% macro forum_topic_listing(topics, title) %}
{% from _self import forum_topic_entry %}
{% from 'macros.twig' import container_title %}
<div class="container forum__topics">
{{ container_title('<i class="fas fa-comments fa-fw"></i> Topics') }}
{{ container_title('<i class="fas fa-comments fa-fw"></i> ' ~ title|default('Topics')) }}
<div class="forum__topics__list">
{% if topics|length > 0 %}

View file

@ -70,7 +70,7 @@
{% if forum_topics|length > 0 %}
<div class="search__anchor" id="topics"></div>
{{ forum_topic_listing(forum_topics) }}
{{ forum_topic_listing(forum_topics, 'Topics (%d)'|format(forum_topics|length)) }}
{% endif %}
{% if forum_posts|length > 0 %}