forked from leftypol/leftypol
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
This commit is contained in:
parent
d900279707
commit
82335ef2f5
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user