diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-17 09:35:13 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-17 09:35:13 +1000 |
| commit | 803f0c8ce1487ea791824197de9d1ee140127838 (patch) | |
| tree | f1547b5dabdfab2fc25c59ae6e762155e2372a49 /templates | |
| parent | b5ebd265f2907533e09d6e5e118292db75d9b62f (diff) | |
Fix search for new bans table
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/ban_list.html | 2 | ||||
| -rw-r--r-- | templates/mod/search_results.html | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/templates/mod/ban_list.html b/templates/mod/ban_list.html index 83674544..b41cef28 100644 --- a/templates/mod/ban_list.html +++ b/templates/mod/ban_list.html @@ -46,7 +46,7 @@ {% if ban.expires == 0 %} - {% else %} - {{ (ban.expires - ban.set + time()) | until }} + {{ (ban.expires - ban.created + time()) | until }} {% endif %} </td> <td style="white-space: nowrap"> diff --git a/templates/mod/search_results.html b/templates/mod/search_results.html index 0c87f75f..0d3c2a10 100644 --- a/templates/mod/search_results.html +++ b/templates/mod/search_results.html @@ -56,10 +56,10 @@ {% for ban in results %} <tr{% if ban.expires != 0 and ban.expires < time() %} style="text-decoration:line-through"{% endif %}> <td style="white-space: nowrap"> - {% if ban.real_ip %} - <a href="?/IP/{{ ban.ip }}#bans">{{ ban.ip }}</a> + {% if ban.single_addr %} + <a href="?/IP/{{ ban.mask }}#bans">{{ ban.mask }}</a> {% else %} - {{ ban.ip|e }} + {{ ban.mask|e }} {% endif %} </td> <td> @@ -77,15 +77,15 @@ {% 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"> {% if ban.expires == 0 %} - {% else %} - {{ (ban.expires - ban.set + time()) | until }} + {{ (ban.expires - ban.created + time()) | until }} {% endif %} </td> <td style="white-space: nowrap"> @@ -116,7 +116,7 @@ {% endif %} {% endif %} - {% elseif ban.mod == -1 %} + {% elseif ban.creator == -1 %} <em>system</em> {% else %} <em>{% trans 'deleted?' %}</em> |
