From d5a994537b4ea1f9780868eb53c79d9f97a75f86 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 25 Jan 2013 22:18:03 +1100 Subject: New debug mod page: ?/debug/recent (recent posts across all boards) --- templates/mod/debug/recent_posts.html | 81 +++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 templates/mod/debug/recent_posts.html (limited to 'templates/mod/debug/recent_posts.html') diff --git a/templates/mod/debug/recent_posts.html b/templates/mod/debug/recent_posts.html new file mode 100644 index 00000000..9da5c0d2 --- /dev/null +++ b/templates/mod/debug/recent_posts.html @@ -0,0 +1,81 @@ + + + + + + + + + + + + + {% for post in posts %} + + + + + + + + + + + + {% endfor %} +
TimeBoardIDThreadIPNameSubjectFileBody (snippet)
+ {{ post.time | ago }} ago + + {{ config.board_abbreviation|sprintf(post.board) }} + + {% if post.thread %} + {% set thread = post.thread %} + {% else %} + {% set thread = post.id %} + {% endif %} + + {{ post.id }} + + + {% if post.thread %} + {{ post.thread }} + {% else %} + (OP) + {% endif %} + + + {{ post.ip }} + + + {% if post.email|length > 0 %} + {# start email #} + + {% endif %} + {% if capcode %} + {{ capcode.cap }} + {% endif %} + + {% if post.subject %} + {{ post.subject }} + {% else %} + – + {% endif %} + + {% if post.file %} + {{ post.file }} ({{ post.filesize | filesize }}) + {% else %} + – + {% endif %} + + {{ post.snippet }} +
+ -- cgit v1.3 From 764d718f8426da1c1161ddf82a5dd8a82fd4b935 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 25 Jan 2013 22:23:26 +1100 Subject: ?/debug/recent --- inc/mod/pages.php | 2 +- templates/mod/debug/recent_posts.html | 64 ++++++++++++++++++++--------------- 2 files changed, 37 insertions(+), 29 deletions(-) (limited to 'templates/mod/debug/recent_posts.html') diff --git a/inc/mod/pages.php b/inc/mod/pages.php index ce643cb5..8feac374 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1901,7 +1901,7 @@ function mod_debug_antispam() { function mod_debug_recent_posts() { global $pdo, $config; - $limit = 150; + $limit = 500; $boards = listBoards(); 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 %} - {{ post.time | ago }} ago + {{ post.time | ago }} ago {{ config.board_abbreviation|sprintf(post.board) }} @@ -29,51 +29,59 @@ - {% if post.thread %} - {{ post.thread }} - {% else %} - (OP) - {% endif %} + + {% if post.thread %} + {{ post.thread }} + {% else %} + (OP) + {% endif %} + - - {{ post.ip }} - - - - {% if post.email|length > 0 %} - {# start email #} - + {{ post.ip }} + {% else %} + hidden {% endif %} - {% if capcode %} - {{ capcode.cap }} - {% endif %} + + + + {% if post.email|length > 0 %} + {# start email #} + + {% endif %} + {% if capcode %} + {{ capcode.cap }} + {% endif %} + {% if post.subject %} - {{ post.subject }} + {{ post.subject }} {% else %} – {% endif %} {% if post.file %} - {{ post.file }} ({{ post.filesize | filesize }}) + {{ post.file }} ({{ post.filesize | filesize }}) {% else %} – {% endif %} - {{ post.snippet }} + {{ post.snippet }} {% endfor %} -- cgit v1.3