From 99b74207d767bd7ce0d4aa1e93788da27d0698f6 Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Tue, 6 Jul 2021 19:44:38 +1000 Subject: Fixes for counting Uncountable error in mod templates by using twig count explicitly --- templates/mod/recent_posts.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/mod/recent_posts.html') diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index e5a95ece..349dcea9 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -1,5 +1,5 @@ - -{% if not posts %} + +{% if not posts|count %}

({% trans 'There are no active posts.' %})

{% else %}

Viewing last {{ limit|e }} posts

-- cgit v1.3