aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2020-03-28 14:17:06 -0300
committerLibravatar Renard 2020-03-28 14:17:06 -0300
commita66c0fdc59cdea9843125a1de4673a89b7ab413e (patch)
tree566c96b4670b4b5be0535de466275702eaca30f9
parentc49e4365dcabaac518fc1275d92705af7dbfde63 (diff)
downloadweabot-a66c0fdc59cdea9843125a1de4673a89b7ab413e.tar.gz
weabot-a66c0fdc59cdea9843125a1de4673a89b7ab413e.tar.xz
weabot-a66c0fdc59cdea9843125a1de4673a89b7ab413e.zip
Enlace ver hilo en bai
-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>