1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

?/debug/recent

This commit is contained in:
Michael Save 2013-01-25 22:23:26 +11:00
parent d5a994537b
commit 764d718f84
2 changed files with 37 additions and 29 deletions

View File

@ -1901,7 +1901,7 @@ function mod_debug_antispam() {
function mod_debug_recent_posts() {
global $pdo, $config;
$limit = 150;
$limit = 500;
$boards = listBoards();

View File

@ -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,18 +29,25 @@
</a>
</td>
<td class="minimal">
<small>
{% if post.thread %}
{{ post.thread }}
{% else %}
<small>(OP)</small>
(OP)
{% endif %}
</small>
</td>
<td class="minimal">
{% if mod|hasPermission(config.mod.show_ip, post.board) %}
<a href="?/IP/{{ post.ip }}">
{{ post.ip }}
</a>
{% else %}
<em>hidden</em>
{% endif %}
</td>
<td class="minimal" >
<small>
{% if post.email|length > 0 %}
{# start email #}
<a class="email" href="mailto:{{ post.email }}">
@ -57,23 +64,24 @@
{% if capcode %}
{{ capcode.cap }}
{% endif %}
</small>
</td>
<td class="minimal" >
{% if post.subject %}
{{ post.subject }}
<small>{{ post.subject }}</small>
{% else %}
&ndash;
{% endif %}
</td>
<td class="minimal">
{% if post.file %}
{{ post.file }} <small>({{ post.filesize | filesize }})</small>
<small>{{ post.file }} ({{ post.filesize | filesize }})</small>
{% else %}
&ndash;
{% endif %}
</td>
<td>
<em>{{ post.snippet }}</em>
<small><em>{{ post.snippet }}</em></small>
</td>
</tr>
{% endfor %}