diff options
| author | czaks <marcin@6irc.net> | 2013-05-26 17:53:00 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-05-26 17:53:00 -0400 |
| commit | 258083e5cbcf905d6454866ee8f1ca9e75f247ea (patch) | |
| tree | 010f2a4c0f09d53fc124d08e6c4922e90d5f1be1 /templates | |
| parent | 4c45689528a0448b6e6808817104f132880c0ac7 (diff) | |
| parent | b9140f3c079c925092dd7a6d53ed05226888756a (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/view_ip.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index c49880ae..562a0140 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -161,3 +161,43 @@ {% include 'mod/ban_form.html' %} </fieldset> {% endif %} + +{% if logs|count > 0 %} + <fieldset id="history"> + <legend>History</legend> + <table class="modlog" style="width:100%"> + <tr> + <th>{% trans 'Staff' %}</th> + <th>{% trans 'Time' %}</th> + <th>{% trans 'Board' %}</th> + <th>{% trans 'Action' %}</th> + </tr> + {% for log in logs %} + <tr> + <td class="minimal"> + {% if log.username %} + <a href="?/log:{{ log.username|e }}">{{ log.username|e }}</a> + {% elseif log.mod == -1 %} + <em>system</em> + {% else %} + <em>{% trans 'deleted?' %}</em> + {% endif %} + </td> + <td class="minimal"> + <span title="{{ log.time|date(config.post_date) }}">{{ log.time|ago }}</span> + </td> + <td class="minimal"> + {% if log.board %} + <a href="?/{{ config.board_path|sprintf(log.board) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(log.board) }}</a> + {% else %} + - + {% endif %} + </td> + <td> + {{ log.text }} + </td> + </tr> + {% endfor %} + </table> + </fieldset> +{% endif %} |
