ban list formatting changes

This commit is contained in:
Michael Save 2012-05-19 21:00:15 +10:00
parent d2c6853ed3
commit 1dedf5deae

View File

@ -4,10 +4,11 @@
<form action="" method="post"> <form action="" method="post">
<table class="mod"> <table class="mod">
<tr> <tr>
<th>{% trans 'IP address' %}</th> <th>{% trans 'IP address/mask' %}</th>
<th>{% trans 'Reason' %}</th> <th>{% trans 'Reason' %}</th>
<th>{% trans 'Board' %}</th> <th>{% trans 'Board' %}</th>
<th>{% trans 'Set' %}</th> <th>{% trans 'Set' %}</th>
<th>{% trans 'Duration' %}</th>
<th>{% trans 'Expires' %}</th> <th>{% trans 'Expires' %}</th>
<th>{% trans 'Staff' %}</th> <th>{% trans 'Staff' %}</th>
</tr> </tr>
@ -37,6 +38,14 @@
</td> </td>
<td style="white-space: nowrap"> <td style="white-space: nowrap">
{{ ban.set|date(config.post_date) }} {{ ban.set|date(config.post_date) }}
<small>({{ ban.set|ago }} ago)</small>
</td>
<td style="white-space: nowrap">
{% if ban.expires == 0 %}
-
{% else %}
{{ (ban.expires - ban.set + time()) | until }}
{% endif %}
</td> </td>
<td style="white-space: nowrap"> <td style="white-space: nowrap">
{% if ban.expires == 0 %} {% if ban.expires == 0 %}