summaryrefslogtreecommitdiff
path: root/templates/mod/view_ip.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mod/view_ip.html')
-rw-r--r--templates/mod/view_ip.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html
index be4119e0..4bacc7f6 100644
--- a/templates/mod/view_ip.html
+++ b/templates/mod/view_ip.html
@@ -18,7 +18,7 @@
<legend>{{ notes|count }} {% trans notes_on_record %}</legend>
</legend>
- {% if notes and notes|length > 0 %}
+ {% if notes|count > 0 %}
<table class="modlog">
<tr>
<th>{% trans 'Staff' %}</th>
@@ -81,7 +81,7 @@
</fieldset>
{% endif %}
-{% if bans and bans|length > 0 and mod|hasPermission(config.mod.view_ban) %}
+{% if bans|count > 0 and mod|hasPermission(config.mod.view_ban) %}
<fieldset id="bans">
{% set bans_on_record = 'ban' ~ (bans|count != 1 ? 's' : '') ~ ' on record' %}
<legend>{{ bans|count }} {% trans bans_on_record %}</legend>
@@ -174,7 +174,7 @@
</fieldset>
{% endif %}
-{% if logs and logs|length > 0 %}
+{% if logs|count > 0 %}
<fieldset id="history">
<legend>History</legend>
<table class="modlog" style="width:100%">