aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/manage.py2
-rw-r--r--cgi/templates/manage/recent.html14
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 @@
<table class="managertable">
<thead>
<th>Archivo</th>
- <th>Timestamp</th>
<th>Mensaje</th>
<th>IP</th>
<th>Acciones</th>
@@ -19,20 +18,17 @@
<?py #endif ?>
</td>
<td>
- <div name="timestamp" data-ts="#{post['timestamp']}">#{post['timestamp_formatted']}</div>
- </td>
- <td>
<div class="recentPostHeader" style="display: block; margin-bottom: 0.5em;">
- #{post['id']} <b>#{post['subject']}</b> en <i>#{post['board_name']}</i></br>
+ ##{post['id']} <b>#{post['subject']}</b> en <i>#{post['board_name']}</i> hace <div name="timestamp" data-ts="#{post['timestamp']}">#{post['timestamp_formatted']}</div></br>
<b>#{post['name']}</b> <code>#{post['email']} #{post['tripcode']}</code>
</div>
<div style="display: block">#{post['message']}</div>
+ <div style="display: block; margin-top: 0.5em; font-size: 0.75em;"></div>
<?py if post['parentid'] != '0': ?>
- <div style="display: block; margin-top: 0.5em; font-size: 0.75em;"><a
- href="#{cgi_url}manage/mod/${post['dir']}?thread=#{post['parentid']}">Ver hilo completo</a>
- </div>
+ <a href="#{cgi_url}manage/mod/${post['dir']}?thread=#{post['parentid']}">Ver hilo completo</a>
<?py #endif ?>
- <div name="timestamp" data-ts="#{post['timestamp']}">#{post['timestamp_formatted']}</div>
+ <a href="#{cgi_url}manage/goto/?dir=${post['dir']}&type=#{post['board_type']}&thread=#{post['parentid']}">Ver hilo en BaI</a>
+ </div>
</td>
<td>
<a href="#{cgi_url}manage/ipshow?ip=#{post['ip']}">#{post['ip']}</a>