aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/manage/news.html
diff options
context:
space:
mode:
authorLibravatar junk 2021-04-08 21:44:40 -0400
committerLibravatar junk 2021-04-11 13:56:18 -0400
commit2f0af65405ad93d449534b1467aa54c95fa37b67 (patch)
tree4ec152537f83af37e7a0d5b99149a6dae951a544 /cgi/templates/manage/news.html
parente9a0a02f9e17a7a03e39d066c8157285e774a376 (diff)
downloadweabot-2f0af65405ad93d449534b1467aa54c95fa37b67.tar.gz
weabot-2f0af65405ad93d449534b1467aa54c95fa37b67.tar.xz
weabot-2f0af65405ad93d449534b1467aa54c95fa37b67.zip
Arreglos a manage
Diffstat (limited to 'cgi/templates/manage/news.html')
-rw-r--r--cgi/templates/manage/news.html52
1 files changed, 31 insertions, 21 deletions
diff --git a/cgi/templates/manage/news.html b/cgi/templates/manage/news.html
index 33b8f49..feec2a5 100644
--- a/cgi/templates/manage/news.html
+++ b/cgi/templates/manage/news.html
@@ -13,32 +13,42 @@
<form action="#{cgi_url}manage/newschannel/add" method="post">
<?py #endif ?>
<table>
-<?py if action != 2: ?>
-<tr><td class="postblock">Anónimo</td><td><input type="checkbox" name="anonymous" id="anon" value="1"#{checked(action != 0)} /><label for="anon"></label></td></tr>
-<tr><td class="postblock">Título</td><td><input type="text" name="title" style="width:100%;" /></td></tr>
-<?py #endif ?>
-<tr><td class="postblock">Cuerpo<br /><br /><small style="font-weight:normal">HTML: Usar<br />con cuidado</small></td><td><textarea cols="48" rows="5" name="message" style="width:100%;"></textarea></td></tr>
-<tr><td colspan="2"><input type="submit" name="submit" style="width:100%;" value="Publicar" /></td></tr>
+ <?py if action != 2: ?>
+ <tr>
+ <td class="postblock">Anónimo</td>
+ <td><input type="checkbox" name="anonymous" id="anon" value="1"#{checked(action != 0)} /><label for="anon"></label></td>
+ </tr>
+ <tr>
+ <td class="postblock">Título</td>
+ <td><input type="text" name="title" style="width:100%;" /></td>
+ </tr>
+ <?py #endif ?>
+ <tr>
+ <td class="postblock">Cuerpo<br /><br /><small style="font-weight:normal">HTML: Usar<br />con cuidado</small></td>
+ <td><textarea cols="48" rows="5" name="message" style="width:100%;"></textarea></td>
+ </tr>
+ <tr><td colspan="2"><input type="submit" name="submit" style="width:100%;" value="Publicar" /></td></tr>
</table>
</form>
<?py if posts: ?>
<hr />
<table class="managertable">
-<tr><th>ID</th><th>Fecha</th>
-<?py if action != 2: ?><th>Título</th><?py #endif ?>
-<?py if action != 2: ?><th>Mensaje</th>
-<?py else: ?><th>Tweet</th>
-<?py #endif ?>
-<th></th></tr>
-<?py for post in posts: ?>
-<tr>
-<td style="text-align:center">#{post['id']}</td>
-<td>#{post['timestamp_formatted']}</td>
-<?py if action != 2: ?><td>#{post['title']}</td><?py #endif ?>
-<td>#{post['message']}</td>
-<td>[<a href="#{cgi_url}manage/news/delete/#{post['id']}?type=#{action}">Eliminar</a>]</td>
-</tr>
-<?py #endfor ?>
+ <tr>
+ <th>ID</th>
+ <th>Fecha</th>
+ <?py if action != 2: ?><th>Título</th><?py #endif ?>
+ <th>${"Noticia" if action != 2 else Tweet}</th>
+ <th></th>
+ </tr>
+ <?py for post in posts: ?>
+ <tr>
+ <td style="text-align:center">#{post['id']}</td>
+ <td>#{post['timestamp_formatted']}</td>
+ <?py if action != 2: ?><td>#{post['title']}</td><?py #endif ?>
+ <td>#{post['message']}</td>
+ <td>[<a href="#{cgi_url}manage/#{'newschannel' if action == 'newschannel' else 'news'}/delete/#{post['id']}?type=#{action}">Eliminar</a>]</td>
+ </tr>
+ <?py #endfor ?>
</table>
<?py #endif ?>
</center>