From 2f06eedb106011527d614fb68deb21ed8febc7de Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 1 May 2019 22:34:36 +0200 Subject: [PATCH] Show count in title again. --- templates/forum/macros.twig | 4 ++-- templates/home/search.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/forum/macros.twig b/templates/forum/macros.twig index 5fec3234..ccdbe0d2 100644 --- a/templates/forum/macros.twig +++ b/templates/forum/macros.twig @@ -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 %}
- {{ container_title(' Topics') }} + {{ container_title(' ' ~ title|default('Topics')) }}
{% if topics|length > 0 %} diff --git a/templates/home/search.twig b/templates/home/search.twig index ced27017..9e8902a2 100644 --- a/templates/home/search.twig +++ b/templates/home/search.twig @@ -70,7 +70,7 @@ {% if forum_topics|length > 0 %}
- {{ forum_topic_listing(forum_topics) }} + {{ forum_topic_listing(forum_topics, 'Topics (%d)'|format(forum_topics|length)) }} {% endif %} {% if forum_posts|length > 0 %}