New bans page format

- Favor showing banned user's name if available
- Support for MyTSID bans
- Show the ban type alongside it (is it a UID / IP / MyTSID ban?)
- Fixed a bug that caused the banned-ip alerts to not display if user's last name was known
This commit is contained in:
Wruczek
2019-01-09 11:22:36 +01:00
parent 7ac6d34e7b
commit 65ae062a96
4 changed files with 60 additions and 13 deletions

View File

View File

@@ -38,7 +38,7 @@
<table id="banlist" class="table display dt-responsive no-wrap" width="100%">
<thead>
<tr>
<th data-priority="1">{_"BANS_HEADER_NAME"}</th>
<th data-priority="1">{_"BANS_HEADER_TARGET"}</th>
<th data-priority="3">{_"BANS_HEADER_REASON"}</th>
<th>{_"BANS_HEADER_INVOKER"}</th>
<th>{_"BANS_HEADER_BANDATE"}</th>
@@ -49,7 +49,7 @@
{foreach $banlist as $ban}
{var $expiretime = $ban["created"] + $ban["duration"]}
<tr>
<td>{$ban["name"]}</td>
<td data-filter="{$ban["filter"]}">{$ban["target"]}</td>
<td>
{if $ban["reason"]}
{$ban["reason"]}