aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/manage
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/templates/manage')
-rw-r--r--cgi/templates/manage/menu.html3
-rw-r--r--cgi/templates/manage/mod.html15
-rw-r--r--cgi/templates/manage/news.html52
-rw-r--r--cgi/templates/manage/recent.html67
-rw-r--r--cgi/templates/manage/recyclebin.html4
5 files changed, 76 insertions, 65 deletions
diff --git a/cgi/templates/manage/menu.html b/cgi/templates/manage/menu.html
index 20d996d..e0d28fa 100644
--- a/cgi/templates/manage/menu.html
+++ b/cgi/templates/manage/menu.html
@@ -1,5 +1,4 @@
-<style>#adminmenu {text-align:center;}#adminmenu table {display:inline-block;font-size:10pt;margin-top:2px;text-align:left;}
-#adminmenu a {font-weight:bold;}label {vertical-align:top;}dd p {margin:0;}</style>
+<link rel="stylesheet" href="#{static_url}css/spc/manage.css" />
<script type="text/javascript" src="/static/js/manage.js"></script>
<input type="hidden" name="board" value="" />
<?py if int(rights) < 4: ?>
diff --git a/cgi/templates/manage/mod.html b/cgi/templates/manage/mod.html
index 1cbaddf..c76965e 100644
--- a/cgi/templates/manage/mod.html
+++ b/cgi/templates/manage/mod.html
@@ -26,7 +26,7 @@
<td>#{i}</td>
<td>#{thread['id']}</td>
<td><a href="#{cgi_url}manage/mod/#{dir}/#{thread['id']}"><b>#{thread['subject']}</b></a></td>
- <td class="date" data-unix="${thread['timestamp']}">#{thread['timestamp_formatted'][:21]}</td>
+ <td class="date">#{thread['timestamp_formatted'][:21]}</td>
<td>${thread['message'][:200]}</td>
<td>#{thread['length']}</td>
<td style="white-space:nowrap;">
@@ -46,9 +46,14 @@
<?py elif mode == 3: ?>
<table class="managertable">
<tr><th colspan="8" style="font-size:16pt;">Hilo: ${posts[0]['subject']} (#{posts[0]['length']})</th></tr>
-<tr><td colspan="8" style="font-size:14pt;text-align:center;"><a href="#{cgi_url}manage/lock/#{dir}/#{posts[0]['id']}">#{"Abrir hilo" if posts[0]['locked'] == "1" else "Cerrar hilo"}</a> /
-<a href="#{cgi_url}manage/permasage/#{dir}/#{posts[0]['id']}">#{"Quitar permasage" if posts[0]['locked'] == "2" else "Permasage"}</a> /
-<a href="#{cgi_url}manage/move/#{dir}/#{posts[0]['id']}">Mover hilo</a></td></tr>
+<tr>
+ <td colspan="8" style="font-size:14pt;text-align:center;">
+ <a href="#{cgi_url}manage/goto/${dir}/#{posts[0]['id']}">Ver en BaI</a> /
+ <a href="#{cgi_url}manage/lock/#{dir}/#{posts[0]['id']}">#{"Abrir hilo" if posts[0]['locked'] == "1" else "Cerrar hilo"}</a> /
+ <a href="#{cgi_url}manage/permasage/#{dir}/#{posts[0]['id']}">#{"Quitar permasage" if posts[0]['locked'] == "2" else "Permasage"}</a> /
+ <a href="#{cgi_url}manage/move/#{dir}/#{posts[0]['id']}">Mover hilo</a>
+ </td>
+</tr>
<tr>
<th>#</th>
<th>ID</th>
@@ -64,7 +69,7 @@
<tr>
<td>#{i}</td>
<td>#{p['id']}</td>
- <td class="date" data-unix="${p['timestamp']}">${p['timestamp_formatted']}</td>
+ <td class="date">${p['timestamp_formatted']}</td>
<td><span class="postername">${p['name']}</span></td>
<td>${p['message']}</td>
<td>
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>
diff --git a/cgi/templates/manage/recent.html b/cgi/templates/manage/recent.html
index fd47592..13e5b42 100644
--- a/cgi/templates/manage/recent.html
+++ b/cgi/templates/manage/recent.html
@@ -12,42 +12,39 @@
<tbody>
<?py for post in posts: ?>
<tr>
- <td>
- <?py if post['file']: ?><a href="/${post['dir']}/src/#{post['file']}" target="_blank"><img
- src="/${post['dir']}/mobile/${post['thumb']}" /></a>
+ <td style="text-align:center;">
+ <?py if post['file']: ?>
+ <a href="/${post['dir']}/src/#{post['file']}" target="_blank"><img src="/${post['dir']}/mobile/${post['thumb']}" /></a>
+ <?py #endif ?>
+ </td>
+ <td class="recentpost">
+ <div class="recentinfo">
+ #{post['id']}
+ <?py if post['subject']: ?>
+ : <b><i>#{post['subject']}</i></b>
<?py #endif ?>
- </td>
- <td>
- <div class="recentPostHeader">
- ##{post['id']} <b>#{post['subject']}</b> en
- <i>#{post['board_name']}</i> hace
- <span name="timestamp" data-ts="#{post['timestamp']}">#{post['timestamp_formatted']}</span>
- por <b>#{post['name']}</b>
- <code>#{post['email']} #{post['tripcode']}</code>
- </div>
- <?py if post['dir'] == 'zonavip': ?>
- <div class="message vip">#{post['message']}</div>
- <?py else: ?>
- <div class="message">#{post['message']}</div>
- <?py #endif ?>
- <div class="actions">
- <?py if post['parentid'] != '0': ?>
- <a href="#{cgi_url}manage/mod/${post['dir']}?thread=#{post['parentid']}">Ver hilo completo</a>
- <?py #endif ?>
- <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>
- </td>
- <td>
- <a title="Eliminar mensaje" href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}"><img
- src="/static/icons/comment_delete.png" /></a>
- <a title="Banear" href="#{cgi_url}manage/ban?ip=#{post['ip']}"><img src="/static/icons/user_delete.png" /></a>
- <a title="Eliminar y Banear" href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}?ban=true"><img
- src="/static/icons/cross.png" /></a>
- </td>
+ : <b>#{post['name']}</b>#{post['tripcode']}
+ : Hace <span name="timestamp" data-ts="#{post['timestamp']}">#{post['timestamp_formatted']}</span>
+ @ #{post['board_name']}
+ </div>
+ <div class="recentmsg">#{post['message']}</div>
+ <div class="actions">
+ <a href="#{cgi_url}manage/mod/${post['dir']}/#{post['parentid']}">Ver hilo completo</a>
+ <?py if post['board_type'] == '1': ?>
+ <a href="#{cgi_url}manage/goto/${post['dir']}/#{post['parentid']}">Ver hilo en BaI</a>
+ <?py else: ?>
+ <a href="/${post['dir']}/res/#{post['parentid'] if post['parentid'] != '0' else post['id']}.html">Ver hilo en BaI</a>
+ <?py #endif ?>
+ </div>
+ </td>
+ <td>
+ <a href="#{cgi_url}manage/ipshow?ip=#{post['ip']}">#{post['ip']}</a>
+ </td>
+ <td style="white-space:nowrap;">
+ <a href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}">Eliminar</a>
+ <a href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}?ban=true">&</a>
+ <a href="#{cgi_url}manage/ban?ip=#{post['ip']}">Ban</a>
+ </td>
</tr>
<?py #endfor ?>
</tbody>
diff --git a/cgi/templates/manage/recyclebin.html b/cgi/templates/manage/recyclebin.html
index b413c9c..bdc7e45 100644
--- a/cgi/templates/manage/recyclebin.html
+++ b/cgi/templates/manage/recyclebin.html
@@ -51,8 +51,8 @@ ${message}
<tr>
<td><a href="#{cgi_url}manage/recyclebin/#{currentpage}/delete/#{post['dir']}/#{post['id']}">X</a><br /><a href="#{cgi_url}manage/recyclebin/#{currentpage}/restore/#{post['dir']}/#{post['id']}">R</a></td>
<td><input type="checkbox" name="!i#{post['dir']}/#{post['id']}" id="#{post['dir']}#{post['id']}" value="1" /><label for="#{post['dir']}#{post['id']}"></label></td>
- <td>#{post['id']}</td>
- <td class="date" data-unix="${post['timestamp']}">${post['timestamp_formatted']}</td>
+ <td><a href="#{cgi_url}manage/mod/${post['dir']}/#{post['id']}">#{post['id']}</a></td>
+ <td class="date">${post['timestamp_formatted']}</td>
<td>${post['dir']}</td>
<td>${post['IS_DELETED']}</td>
<td>${post['ip']}</td>