diff options
Diffstat (limited to 'cgi/templates')
-rw-r--r-- | cgi/templates/manage/boardoptions.html | 16 | ||||
-rw-r--r-- | cgi/templates/manage/lockboard.html | 20 | ||||
-rw-r--r-- | cgi/templates/manage/menu.html | 95 | ||||
-rw-r--r-- | cgi/templates/manage/recent_images.html | 30 |
4 files changed, 103 insertions, 58 deletions
diff --git a/cgi/templates/manage/boardoptions.html b/cgi/templates/manage/boardoptions.html index 4e33e5b..7e57320 100644 --- a/cgi/templates/manage/boardoptions.html +++ b/cgi/templates/manage/boardoptions.html @@ -5,9 +5,19 @@ <div class="replymode">Opciones de Board</div> <?py if mode == 0: ?> <table class="managertable"> - <tr><th colspan="2">Sección</th><th>Accion</th></tr> + <tr> + <th colspan="2">Sección</th> + <th>Acciones</th> + </tr> <?py for board in boards: ?> - <tr><td>/#{board['dir']}/</td><td>#{board['name']}</td><td>[<a href="#{cgi_url}manage/board/#{board['dir']}">Configurar</a>]</td></tr> + <tr> + <td>/#{board['dir']}/</td> + <td>#{board['name']}</td> + <td style="white-space:nowrap"> + [<a href="#{cgi_url}manage/board/#{board['dir']}">Configurar</a>] + [<a href="#{cgi_url}manage/boardlock/#{board['dir']}">#{'Abrir' if board['locked'] else 'Cerrar'}</a>] + </td> + </tr> <?py #endfor ?> </table> <?py elif mode == 1: ?> @@ -192,4 +202,4 @@ <?py #endif ?> </center> <hr /> -<?py include('templates/base_bottom.html') ?>
\ No newline at end of file +<?py include('templates/base_bottom.html') ?> diff --git a/cgi/templates/manage/lockboard.html b/cgi/templates/manage/lockboard.html deleted file mode 100644 index 49559f6..0000000 --- a/cgi/templates/manage/lockboard.html +++ /dev/null @@ -1,20 +0,0 @@ -<?py include('templates/base_top.html') ?> -<?py include('templates/manage/menu.html') ?> -<center> -<div class="replymode">Cerrar o abrir board</div> -<table class="managertable"> - <tr> - <th colspan="2">Sección</th> - <th>Acción</th> - </tr> - <?py for board in boards: ?> - <tr> - <td>#{board['dir']}</td> - <td>#{board['name']}</td> - <td style="text-align:center;">[<a href="#{cgi_url}manage/boardlock/#{board['dir']}">#{'Abrir' if board['locked'] else 'Cerrar'}</a>]</td> - </tr> - <?py #endfor ?> -</table> -</center> -<hr /> -<?py include('templates/base_bottom.html') ?> diff --git a/cgi/templates/manage/menu.html b/cgi/templates/manage/menu.html index e0d28fa..000ec2f 100644 --- a/cgi/templates/manage/menu.html +++ b/cgi/templates/manage/menu.html @@ -2,28 +2,75 @@ <script type="text/javascript" src="/static/js/manage.js"></script> <input type="hidden" name="board" value="" /> <?py if int(rights) < 4: ?> -<div id="adminmenu">¡Bienvenido, <b><acronym title="Cuenta creada el #{added}">#{username}</acronym></b>! ¡Eres -<?py if rights == '0': ?><b>Accionista</b> -<?py elif rights == '1': ?><b>Accionista</b> -<?py elif rights == '2': ?><span class="developer">Developer</span> -<?py elif rights == '3': ?><span class="moderator">Moderador</span> -<?py #endif ?> de #{site_title}!<br /> -<center> -<table class="reply"> -<tr><td>Principal:</td> -<td>- <a href="#{cgi_url}manage">Inicio</a> - <a href="#{cgi_url}manage/changepassword">Cambiar contraseña</a> - <a href="#{cgi_url}manage/newschannel">News Channel</a> - <a href="//webmail.bienvenidoainternet.org">Correo</a> - <a href="#{cgi_url}manage/logout">Cerrar sesión</a> -</td></tr> -<tr><td>Posts:</td> -<td>- <a href="#{cgi_url}manage/mod">Modbrowse</a> - <a href="#{cgi_url}manage/ipshow">Ver por IP</a> - <a href="#{cgi_url}manage/recyclebin">Papelera de reciclaje</a> - <a href="#{cgi_url}manage/recent_images">Imágenes recientes</a> - <a href="#{cgi_url}manage/recent">Posts recientes</a> -</td></tr> -<tr><td>Moderación:</td> -<td>- <a href="#{cgi_url}manage/reports">Denuncias</a> - <a href="#{cgi_url}manage/ipdelete">Eliminar por IP</a> - <a href="#{cgi_url}manage/bans">Lista de bans</a> - <a href="#{cgi_url}manage/move">Mover hilo</a> - <a href="#{cgi_url}manage/filters">Filtros</a> - <a href="#{cgi_url}manage/quotes">Frases</a> -</td></tr> -<?py if int(rights) < 3: ?> -<tr><td>Administración:</td> -<td>- <a href="#{cgi_url}manage/rebuild">Reconstruir</a> - <a href="#{cgi_url}manage/news?type=1">Noticias</a> - <a href="#{cgi_url}manage/news?type=2">Twitter</a> - <a href="#{cgi_url}manage/board">Opciones de board</a> - <a href="#{cgi_url}manage/addboard">Agregar board</a> - <a href="#{cgi_url}manage/lockboard">Cerrar board</a> -</td></tr> -<?py if int(rights) in [0,2]: ?> -<tr><td>Staff:</td> -<td>- <a href="#{cgi_url}manage/staff">Miembros</a> - <a href="#{cgi_url}manage/logs">Registro de acciones</a> -</td></tr> -<?py #endif ?> -<?py #endif ?> -</table></center></div> +<div id="adminmenu"> + ¡Bienvenido, <b><acronym title="Cuenta creada el #{added}">#{username}</acronym></b>! ¡Eres + <?py if rights == '0': ?><b>Accionista</b> + <?py elif rights == '1': ?><b>Accionista</b> + <?py elif rights == '2': ?><span class="developer">Developer</span> + <?py elif rights == '3': ?><span class="moderator">Moderador</span> + <?py #endif ?> de #{site_title}!<br /> + <center> + <table class="reply"> + <tr> + <td>Principal:</td> + <td> + - <a href="#{cgi_url}manage">Inicio</a> + - <a href="#{cgi_url}manage/changepassword">Cambiar contraseña</a> + - <a href="#{cgi_url}manage/newschannel">News Channel</a> + - <a href="//webmail.bienvenidoainternet.org">Correo</a> + - <a href="#{cgi_url}manage/logout">Cerrar sesión</a> + - + </td> + </tr> + <tr> + <td>Posts:</td> + <td> + - <a href="#{cgi_url}manage/mod">Modbrowse</a> + - <a href="#{cgi_url}manage/ipshow">Ver por IP</a> + - <a href="#{cgi_url}manage/recyclebin">Papelera</a> + - <a href="#{cgi_url}manage/basural">Basural</a> + - <a href="#{cgi_url}manage/recent_images">Imágenes</a> + - <a href="#{cgi_url}manage/recent">Posts recientes</a> + - + </td> + </tr> + <tr> + <td>Moderación:</td> + <td> + - <a href="#{cgi_url}manage/reports">Denuncias</a> + - <a href="#{cgi_url}manage/ipdelete">Eliminar por IP</a> + - <a href="#{cgi_url}manage/bans">Lista de bans</a> + - <a href="#{cgi_url}manage/move">Mover hilo</a> + - <a href="#{cgi_url}manage/filters">Filtros</a> + - <a href="#{cgi_url}manage/quotes">Frases</a> + - + </td> + </tr> + <?py if int(rights) < 3: ?> + <tr> + <td>Administración:</td> + <td> + - <a href="#{cgi_url}manage/rebuild">Reconstruir</a> + - <a href="#{cgi_url}manage/news?type=1">Noticias</a> + - <a href="#{cgi_url}manage/news?type=2">Twitter</a> + - <a href="#{cgi_url}manage/board">Opciones de board</a> + - <a href="#{cgi_url}manage/addboard">Agregar board</a> + - + </td> + </tr> + <?py if int(rights) in [0,2]: ?> + <tr> + <td>Staff:</td> + <td> + - <a href="#{cgi_url}manage/staff">Miembros</a> + - <a href="#{cgi_url}manage/logs">Registro de acciones</a> + - + </td> + </tr> + <?py #endif ?> + <?py #endif ?> + </table> + </center> +</div> <hr /> -<?py #endif ?>
\ No newline at end of file +<?py #endif ?> diff --git a/cgi/templates/manage/recent_images.html b/cgi/templates/manage/recent_images.html index 39f919c..1071eeb 100644 --- a/cgi/templates/manage/recent_images.html +++ b/cgi/templates/manage/recent_images.html @@ -1,24 +1,32 @@ <?py include('templates/base_top.html') ?> <?py include('templates/manage/menu.html') ?> -<style>.imgs{font-size:0;}.imgs img{vertical-align:top;margin:2px;height:150px;width:auto;}</style> +<style> + .imgs {font-size:0;} + .imgs img {vertical-align:top;margin:2px;height:150px;width:auto;} +</style> <center> <div class="replymode">Imágenes recientes</div> <form action="#{cgi_url}manage/recent_images" name="recent_images" method="post"> <table> - <tr><td class="postblock">Número a mostrar</td><td><input type="text" name="images" size="4" /></td></tr> - <tr><td colspan="2"><input type="submit" style="width:100%;" value="Enviar" /></td></tr> + <tr> + <td class="postblock">Número a mostrar</td> + <td><input type="text" name="images" size="4" /></td> + </tr> + <tr> + <td colspan="2"><input type="submit" style="width:100%;" value="Enviar" /></td> + </tr> </table> </form> <hr /> <div class="imgs"> -<?py for post in posts: ?> - <?py if post['parentid'] != '0': ?> - <a href="/#{post['dir']}/res/#{post['parentid']}.html##{post['id']}"><img src="#{boards_url}#{post['dir']}/thumb/#{post['thumb']}" /></a> - <?py else: ?> - <a href="/#{post['dir']}/res/#{post['id']}.html##{post['id']}"><img src="#{boards_url}#{post['dir']}/thumb/#{post['thumb']}" /></a> - <?py #endif ?> -<?py #endfor ?> + <?py for post in posts: ?> + <?py if post['parentid'] != '0': ?> + <a href="/#{post['dir']}/res/#{post['parentid']}.html##{post['id']}"><img src="#{boards_url}#{post['dir']}/thumb/#{post['thumb']}" /></a> + <?py else: ?> + <a href="/#{post['dir']}/res/#{post['id']}.html##{post['id']}"><img src="#{boards_url}#{post['dir']}/thumb/#{post['thumb']}" /></a> + <?py #endif ?> + <?py #endfor ?> </div> </center> <hr /> -<?py include('templates/base_bottom.html') ?>
\ No newline at end of file +<?py include('templates/base_bottom.html') ?> |