diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2013-01-25 22:23:26 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2013-01-25 22:23:26 +1100 |
| commit | 764d718f8426da1c1161ddf82a5dd8a82fd4b935 (patch) | |
| tree | 50c84177294f9bd5cc0ecf1929a1aaf014d271f1 /templates/mod/debug/recent_posts.html | |
| parent | d5a994537b4ea1f9780868eb53c79d9f97a75f86 (diff) | |
?/debug/recent
Diffstat (limited to 'templates/mod/debug/recent_posts.html')
| -rw-r--r-- | templates/mod/debug/recent_posts.html | 64 |
1 files changed, 36 insertions, 28 deletions
diff --git a/templates/mod/debug/recent_posts.html b/templates/mod/debug/recent_posts.html index 9da5c0d2..740ed21e 100644 --- a/templates/mod/debug/recent_posts.html +++ b/templates/mod/debug/recent_posts.html @@ -13,7 +13,7 @@ {% for post in posts %} <tr> <td class="minimal"> - {{ post.time | ago }} ago + <small>{{ post.time | ago }} ago</small> </td> <td class="minimal"> <a href="?/{{ config.board_path|sprintf(post.board) }}{{ config.file_index }}">{{ config.board_abbreviation|sprintf(post.board) }}</a> @@ -29,51 +29,59 @@ </a> </td> <td class="minimal"> - {% if post.thread %} - {{ post.thread }} - {% else %} - <small>(OP)</small> - {% endif %} + <small> + {% if post.thread %} + {{ post.thread }} + {% else %} + (OP) + {% endif %} + </small> </td> <td class="minimal"> - <a href="?/IP/{{ post.ip }}"> - {{ post.ip }} - </a> - </td> - <td class="minimal" > - {% if post.email|length > 0 %} - {# start email #} - <a class="email" href="mailto:{{ post.email }}"> - {% endif %} - {% set capcode = post.capcode|capcode %} - <span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name }}</span> - {% if post.trip|length > 0 %} - <span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span> - {% endif %} - {% if post.email|length > 0 %} - {# end email #} + {% if mod|hasPermission(config.mod.show_ip, post.board) %} + <a href="?/IP/{{ post.ip }}"> + {{ post.ip }} </a> + {% else %} + <em>hidden</em> {% endif %} - {% if capcode %} - {{ capcode.cap }} - {% endif %} + </td> + <td class="minimal" > + <small> + {% if post.email|length > 0 %} + {# start email #} + <a class="email" href="mailto:{{ post.email }}"> + {% endif %} + {% set capcode = post.capcode|capcode %} + <span {% if capcode.name %}style="{{ capcode.name }}" {% endif %}class="name">{{ post.name }}</span> + {% if post.trip|length > 0 %} + <span {% if capcode.trip %}style="{{ capcode.trip }}" {% endif %}class="trip">{{ post.trip }}</span> + {% endif %} + {% if post.email|length > 0 %} + {# end email #} + </a> + {% endif %} + {% if capcode %} + {{ capcode.cap }} + {% endif %} + </small> </td> <td class="minimal" > {% if post.subject %} - {{ post.subject }} + <small>{{ post.subject }}</small> {% else %} – {% endif %} </td> <td class="minimal"> {% if post.file %} - {{ post.file }} <small>({{ post.filesize | filesize }})</small> + <small>{{ post.file }} ({{ post.filesize | filesize }})</small> {% else %} – {% endif %} </td> <td> - <em>{{ post.snippet }}</em> + <small><em>{{ post.snippet }}</em></small> </td> </tr> {% endfor %} |
