From a66c0fdc59cdea9843125a1de4673a89b7ab413e Mon Sep 17 00:00:00 2001 From: Renard Date: Sat, 28 Mar 2020 14:17:06 -0300 Subject: Enlace ver hilo en bai --- cgi/manage.py | 2 +- cgi/templates/manage/recent.html | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/cgi/manage.py b/cgi/manage.py index 7d569a1..c4581be 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -159,7 +159,7 @@ def manage(self, path_split): template_filename = "mod.html" template_values = {"mode": 2, "dir": board["dir"], "threads": threads} elif path_split[2] == "recent": - posts = FetchAll("SELECT posts.id, posts.subject, dir, parentid, file, thumb, timestamp_formatted, timestamp, posts.message, INET_NTOA(ip) AS ip, posts.name, email, tripcode, boards.name AS board_name FROM posts INNER JOIN boards ON posts.boardid = boards.id WHERE posts.timestamp > UNIX_TIMESTAMP() - 86400 ORDER BY timestamp DESC") + posts = FetchAll("SELECT posts.id, posts.subject, dir, boards.board_type, parentid, file, thumb, timestamp_formatted, timestamp, posts.message, INET_NTOA(ip) AS ip, posts.name, email, tripcode, boards.name AS board_name FROM posts INNER JOIN boards ON posts.boardid = boards.id WHERE posts.timestamp > UNIX_TIMESTAMP() - 86400 ORDER BY timestamp DESC") template_filename = "recent.html" template_values = {"posts": posts} elif path_split[2] == 'staff': diff --git a/cgi/templates/manage/recent.html b/cgi/templates/manage/recent.html index 38d9a75..d3df21c 100644 --- a/cgi/templates/manage/recent.html +++ b/cgi/templates/manage/recent.html @@ -5,7 +5,6 @@ - @@ -18,21 +17,18 @@ src="/${post['dir']}/mobile/${post['thumb']}" /> -
ArchivoTimestamp Mensaje IP Acciones -
#{post['timestamp_formatted']}
-
- #{post['id']} #{post['subject']} en #{post['board_name']}
+ ##{post['id']} #{post['subject']} en #{post['board_name']} hace
#{post['timestamp_formatted']}

#{post['name']} #{post['email']} #{post['tripcode']}
#{post['message']}
+
-
Ver hilo completo -
+ Ver hilo completo -
#{post['timestamp_formatted']}
+ Ver hilo en BaI +
#{post['ip']} -- cgit v1.2.1-18-gbd029