diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index ee1817b3d..7066adcd6 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -65,7 +65,7 @@ {% endif %} -{% if config.mod.dashboard_links|count %} +{% if config.mod.dashboard_links|length %} {% for label,link in config.mod.dashboard_links %}
({% trans 'No private messages for you.' %})
{% else %}{% trans 'IP address' %} | diff --git a/templates/mod/users.html b/templates/mod/users.html index 6f42ce2a2..4f02c5248 100644 --- a/templates/mod/users.html +++ b/templates/mod/users.html @@ -47,10 +47,10 @@ {% endif %}
- {% if mod|hasPermission(config.mod.promoteusers) and user.type < constant(config.mod.groups[0:-1]|last) %}
+ {% if mod|hasPermission(config.mod.promoteusers) and user.type < constant(config.mod.groups[0:-1]|last|upper) %}
▲
{% endif %}
- {% if mod|hasPermission(config.mod.promoteusers) and user.type > constant(config.mod.groups|first) %}
+ {% if mod|hasPermission(config.mod.promoteusers) and user.type > constant(config.mod.groups|first|upper) %}
▼
{% endif %}
{% if mod|hasPermission(config.mod.modlog) %}
diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html
index 4bacc7f63..6735ff6f7 100644
--- a/templates/mod/view_ip.html
+++ b/templates/mod/view_ip.html
@@ -18,7 +18,7 @@
- {% if notes|count > 0 %}
+ {% if notes|default([])|length > 0 %}
|
---|