summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2019-08-10 11:57:57 +1000
committerBenjamin Southall <applemansigloo@gmail.com>2019-08-10 11:58:12 +1000
commitb6e143975571675d071afd75fbfbd673c9b01bb7 (patch)
tree5c426f6fc73ef0305bc448997788450f3916b61b /templates
parent896558faddc81b93e0afb73d56bc7f7962086af8 (diff)
Fixes Recent posts show nothing #157, because I forgot the length check. Reverts to use not because it is simpler than using default empty array and length
Diffstat (limited to 'templates')
-rw-r--r--templates/mod/recent_posts.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html
index 2a166723..e5a95ece 100644
--- a/templates/mod/recent_posts.html
+++ b/templates/mod/recent_posts.html
@@ -1,5 +1,5 @@
<script src="{{ config.additional_javascript_url }}js/mod/recent_posts.js"></script>
-{% if posts|default([])|length %}
+{% if not posts %}
<p style="text-align:center" class="unimportant">({% trans 'There are no active posts.' %})</p>
{% else %}
<h4>Viewing last {{ limit|e }} posts</h4>