diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:22:40 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:22:40 +1000 |
| commit | 92561d7f36508b7e0271926e417adf0e2e53916b (patch) | |
| tree | a8588b4f70af276c5acf58836e33b1f6ff5c61e8 /templates/mod/view_ip.html | |
| parent | 6f1083e4b51fc9c4c594f6c72cf3d84ef4d0298b (diff) | |
Initial attempt a switch to composer and PHP-8.1 compatibility
Diffstat (limited to 'templates/mod/view_ip.html')
| -rw-r--r-- | templates/mod/view_ip.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index 4bacc7f6..e2dbf14c 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -14,11 +14,11 @@ {% if mod|hasPermission(config.mod.view_notes) %} <fieldset id="notes"> <legend> - {% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %} - <legend>{{ notes|count }} {% trans notes_on_record %}</legend> + {% set notes_on_record = 'note' ~ (notes|length != 1 ? 's' : '') ~ ' on record' %} + <legend>{{ notes|length }} {% trans notes_on_record %}</legend> </legend> - {% if notes|count > 0 %} + {% if notes|length > 0 %} <table class="modlog"> <tr> <th>{% trans 'Staff' %}</th> @@ -81,10 +81,10 @@ </fieldset> {% endif %} -{% if bans|count > 0 and mod|hasPermission(config.mod.view_ban) %} +{% if bans|length > 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> + {% set bans_on_record = 'ban' ~ (bans|length != 1 ? 's' : '') ~ ' on record' %} + <legend>{{ bans|length }} {% trans bans_on_record %}</legend> {% for ban in bans %} <form action="" method="post" style="text-align:center"> @@ -174,7 +174,7 @@ </fieldset> {% endif %} -{% if logs|count > 0 %} +{% if logs|length > 0 %} <fieldset id="history"> <legend>History</legend> <table class="modlog" style="width:100%"> |
