diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-17 09:15:24 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-17 09:15:24 +1000 |
| commit | 3e57bb04d7b8fc62761c0fa50b4d062701b1a82a (patch) | |
| tree | 29a3a4d5bf56e04091ede96c5d678b386b6a4502 /templates/mod | |
| parent | 3714f3707363584a3d97398aef25b9c7240d2b2e (diff) | |
Begin upgrade to much better bans table. DO NOT PULL YET; It won't work.
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/ban_list.html | 12 | ||||
| -rw-r--r-- | templates/mod/view_ip.html | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/templates/mod/ban_list.html b/templates/mod/ban_list.html index f8826ade..83674544 100644 --- a/templates/mod/ban_list.html +++ b/templates/mod/ban_list.html @@ -17,10 +17,10 @@ <tr{% if ban.expires != 0 and ban.expires < time() %} style="text-decoration:line-through"{% endif %}> <td style="white-space: nowrap"> <input type="checkbox" name="ban_{{ ban.id }}"> - {% if ban.real_ip %} - <a href="?/IP/{{ ban.ip }}">{{ ban.ip }}</a> + {% if ban.single_addr %} + <a href="?/IP/{{ ban.mask }}">{{ ban.mask }}</a> {% else %} - {{ ban.ip|e }} + {{ ban.mask }} {% endif %} </td> <td> @@ -38,8 +38,8 @@ {% endif %} </td> <td style="white-space: nowrap"> - <span title="{{ ban.set|date(config.post_date) }}"> - {{ ban.set|ago }} ago + <span title="{{ ban.created|date(config.post_date) }}"> + {{ ban.created|ago }} ago </span> </td> <td style="white-space: nowrap"> @@ -77,7 +77,7 @@ {% endif %} {% endif %} - {% elseif ban.mod == -1 %} + {% elseif ban.creator == -1 %} <em>system</em> {% else %} <em>{% trans 'deleted?' %}</em> diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index e2dad7af..f73c5d5a 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -100,7 +100,7 @@ </tr> <tr> <th>{% trans 'IP' %}</th> - <td>{{ ban.ip }}</td> + <td>{{ ban.mask }}</td> </tr> <tr> <th>{% trans 'Reason' %}</th> @@ -124,7 +124,7 @@ </tr> <tr> <th>{% trans 'Set' %}</th> - <td>{{ ban.set|date(config.post_date) }}</td> + <td>{{ ban.created|date(config.post_date) }}</td> </tr> <tr> <th>{% trans 'Expires' %}</th> |
