summaryrefslogtreecommitdiff
path: root/templates/mod/view_ip.html
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2021-07-06 19:44:38 +1000
committerAppleman1234 <applemansigloo@gmail.com>2021-07-06 19:44:38 +1000
commit99b74207d767bd7ce0d4aa1e93788da27d0698f6 (patch)
treedbc4dd1c118a4e89e257a04a45b5b591b54528c6 /templates/mod/view_ip.html
parentbae0a912c7b5aee2eb43bf1a138f40d60fdb2d0e (diff)
Fixes for counting Uncountable error in mod templates by using twig count explicitly
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%">