diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 09:47:27 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 09:47:27 +1000 |
| commit | 2843ddc4826f250a8af6203cff437929ab807a41 (patch) | |
| tree | a63d0ce133c97356a809237606e5a13dab349c82 /templates/mod | |
| parent | 78f3ea783394dba14b51b27f7f2db3974ce8b8b3 (diff) | |
view bans / unban
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/view_ip.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index 3b558e4b..a9676dd7 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -11,6 +11,79 @@ {% set redirect = '?/IP/' ~ ip %} +{% if bans|count > 0 %} + <fieldset> + <legend>Ban{% if bans|count != 1 %}s{% endif %} on record</legend> + + {% for ban in bans %} + <form action="" method="post" style="text-align:center"> + <table style="width:400px;margin-bottom:10px;border-bottom:1px solid #ddd;padding:5px"> + <tr> + <th>Status</th> + <td> + {% if config.mod.view_banexpired and ban.expires != 0 and ban.expires < time() %} + Expired + {% else %} + Active + {% endif %} + </td> + </tr> + <tr> + <th>IP</th> + <td>{{ ban.ip }}</td> + </tr> + <tr> + <th>Reason</th> + <td> + {% if ban.reason %} + {{ ban.reason }} + {% else %} + <em>no reason</em> + {% endif %} + </td> + </tr> + <tr> + <th>Board</th> + <td> + {% if ban.board %} + {{ config.board_abbreviation|sprintf(ban.board) }} + {% else %} + <em>all boards</em> + {% endif %} + </td> + </tr> + <tr> + <th>Set</th> + <td>{{ ban.set|date(config.post_date) }}</td> + </tr> + <tr> + <th>Expires</th> + <td> + {% if ban.expires %} + {{ ban.expires|date(config.post_date) }} + {% else %} + <em>never</em> + {% endif %} + </td> + </tr> + <tr> + <th>Staff</th> + <td> + {% if ban.username %} + {{ ban.username }} + {% else %} + <em>deleted?</em> + {% endif %} + </td> + </tr> + </table> + <input type="hidden" name="ban_id" value="{{ ban.id }}"> + <input type="submit" name="unban" value="Remove ban"> + </form> + {% endfor %} + </fieldset> +{% endif %} + <fieldset> <legend>New ban</legend> {% include 'mod/ban_form.html' %} |
