Browse Source

?/debug/recent

pull/40/head
Michael Save 11 years ago
parent
commit
764d718f84
  1. 2
      inc/mod/pages.php
  2. 18
      templates/mod/debug/recent_posts.html

2
inc/mod/pages.php

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

18
templates/mod/debug/recent_posts.html

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

Loading…
Cancel
Save