mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
* fixed when ban expires is unlimited
* moved Banished code to twig
This commit is contained in:
@@ -329,7 +329,13 @@
|
||||
{% set rows = rows + 1 %}
|
||||
<tr bgcolor="{{ getStyle(rows) }}">
|
||||
<td width="20%">Created:</td>
|
||||
<td>{{ account.getCustomField("created")|date("j F Y, g:i a") ~ bannedUntil|raw }}</td>
|
||||
<td>{{ account.getCustomField("created")|date("j F Y, g:i a") }}
|
||||
{% if bannedUntil matches '/^\\d+$/' or bannedUntil == '-1' %}
|
||||
<font color="red">[Banished {% if bannedUntil == '-1' %}forever{% else %}until {{ bannedUntil|date('d F Y, h:s') }}{% endif %}]</font>
|
||||
{% else %}
|
||||
{{ bannedUntil|raw }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{{ hook(constant('HOOK_CHARACTERS_AFTER_ACCOUNT')) }}
|
||||
|
Reference in New Issue
Block a user