diff --git a/templates/mod/inbox.html b/templates/mod/inbox.html index 614c1020..63f4de5c 100644 --- a/templates/mod/inbox.html +++ b/templates/mod/inbox.html @@ -1,4 +1,4 @@ -{% if messages|default([])|length == 0 %} +{% if not messages %}
({% trans 'No private messages for you.' %})
{% else %}{% trans 'IP address' %} | diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index 6735ff6f..20a4573d 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -18,7 +18,7 @@ - {% if notes|default([])|length > 0 %} + {% if notes and noteslength > 0 %}
---|
{% trans 'Staff' %} | @@ -81,7 +81,7 @@ {% endif %} -{% if bans|default([])|length > 0 and mod|hasPermission(config.mod.view_ban) %} +{% if bans and bans|length > 0 and mod|hasPermission(config.mod.view_ban) %} {% endif %} -{% if logs|default([])|length > 0 %} +{% if logs and logs|length > 0 %}
---|