aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/post.py4
-rw-r--r--cgi/templates/home.html3
-rw-r--r--cgi/templates/trash.html4
3 files changed, 7 insertions, 4 deletions
diff --git a/cgi/post.py b/cgi/post.py
index 826816a..e3ab27f 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -1117,10 +1117,12 @@ def regenerateNews():
def regenerateTrash():
posts = FetchAll("SELECT posts.id AS id, timestamp_formatted, posts.message AS message, boards.name AS board FROM `posts` INNER JOIN `boards` ON boardid = boards.id WHERE IS_DELETED = 2 ORDER BY `timestamp` DESC")
+
for i in range(len(posts)):
+ posts[i]["timestamp_formatted"] = posts[i]["timestamp_formatted"].split()[0]
posts[i]["message"] = formatting.remove_html(posts[i]["message"])
- template_values = {'posts': posts}
+ template_values = {'posts': posts}
page_rendered = renderTemplate('trash.html', template_values)
with open(Settings.HOME_DIR + "basural.html", "w") as f:
diff --git a/cgi/templates/home.html b/cgi/templates/home.html
index 1875fd2..7784c7c 100644
--- a/cgi/templates/home.html
+++ b/cgi/templates/home.html
@@ -64,7 +64,8 @@
<a href="/movil.html">BaI Móvil</a> ·
<a href="/cgi/stats" target="_blank">Estadísticas</a> ·
<a href="/archivo.html" target="_blank">Archivo</a> ·
- <a href="/api.html" target="_blank">API</a>
+ <a href="/api.html" target="_blank">API</a> ·
+ <a href="/basural.html" target="_blank">Basural</a>
</div>
</td>
</tr>
diff --git a/cgi/templates/trash.html b/cgi/templates/trash.html
index 1bffc08..0bd5d8e 100644
--- a/cgi/templates/trash.html
+++ b/cgi/templates/trash.html
@@ -70,7 +70,7 @@ td:nth-child(even) {
</style>
</head>
<body>
-<a href="/bai.html" id="back_sm">&lt;&&lt;&lt;&lt;&lt;lt; Volver</a>
+<a href="/bai.html" target="_top" id="back_sm">&lt;&&lt;&lt;&lt;&lt;lt; Volver</a>
<div id="title">
<img src="/basura1.gif" style="width:72px;height:130px;" />
@@ -99,7 +99,7 @@ td:nth-child(even) {
<hr />
<div id="back">
- <a href="/bai.html">&lt;&lt; Volver &lt;&lt;</a>
+ <a href="/bai.html" target="_top">&lt;&lt; Volver &lt;&lt;</a>
<img src="/basura3.gif" style="width:200px;height:260px;" />
<img src="/basura3.gif" style="width:200px;height:260px;" />
<img src="/basura3.gif" style="width:200px;height:260px;" />