diff options
-rw-r--r-- | cgi/templates/home.html | 106 | ||||
-rw-r--r-- | cgi/templates/manage/home.html | 38 | ||||
-rw-r--r-- | cgi/templates/manage/news.html | 46 | ||||
-rw-r--r-- | cgi/templates/news.html | 40 |
4 files changed, 230 insertions, 0 deletions
diff --git a/cgi/templates/home.html b/cgi/templates/home.html new file mode 100644 index 0000000..4e1f217 --- /dev/null +++ b/cgi/templates/home.html @@ -0,0 +1,106 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> + <meta name="description" content="Bienvenido a Internet es un sitio para la discusión de distintos temas, sin necesidad de registrarse." /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>Bienvenido a Internet BBS/IB</title> + <link rel="shortcut icon" href="favicon.ico" /> + <link rel="stylesheet" type="text/css" href="/home.css?v=1" /> + <link rel="stylesheet" type="text/css" href="/home_ib.css?v=1" title="IB" /> + <link rel="alternate stylesheet" type="text/css" href="/home_vintage.css?v=1" title="Vintage" /> + <link rel="alternate stylesheet" type="text/css" href="/home_bbs.css?v=1" title="BBS" /> + <link rel="alternate stylesheet" type="text/css" href="/home_retro.css?v=1" title="Retro" /> + <script type="text/javascript" src="#{static_url}js/home.js"></script> +</head> +<body class="home"> +<table id="all"> +<tr> + <td id="main"> + <div id="logo" style="margin:0 auto;"></div> + <h1>#{header}</h1> + <em>#{slogan}</em> + </td> + <td class="tab"> + <h2>Secciones</h2> + <div id="boards"> + <div class="cat"> + <h3>Discusión</h3> + <a href="/noticias/">Actualidad</a> + <a href="/tech/">Tecnología</a> + <a href="/juegos/">Juegos</a> + <a href="/musica/">Música</a> + <a href="/tv/">TV y Cine</a> + <a href="/letras/">Humanidades</a> + </div> + <div class="cat"> + <h3>Conversación</h3> + <a href="/zonavip/">Club VIP</a> + <a href="/world/">World Lobby</a> + </div> + <div class="cat"> + <h3>IB</h3> + <a href="/img/">Imágenes</a> + <a href="/2d/">二次元画像</a> + <a href="/n/">Naturaleza</a> + <a href="/o/">Oekaki</a> + </div> + <div class="cat"> + <h3>Área 51</h3> + <a href="/bai/">Meta</a> + <a href="/0/" class="cero">0</a> + </div> + </div> + <hr /> + <div id="links"><a href="/" target="_top"><b>Portada</b></a> · <a href="/guia.html"><b>¿Eres nuevo?</b></a> · <a href="/faq.html"><b>Preguntas Frecuentes</b></a></div> + <div id="extra"> + <span id="change_style">Estilo: + <a href="#">Vintage</a> + <a href="#">BBS</a> + <a href="#">IB</a> + <a href="#">Retro</a></span> · + <a href="/bai.html" target="_top">Frames</a> · + <a href="//tv.bienvenidoainternet.org/" target="_blank">BaI TV</a> · + <a href="/cgi/stats" target="_blank">Estadísticas</a> + </div> + </td> +</tr> +<tr> + <td rowspan="2" class="tab"> + <h2 id="newposts">Hilos activos <div id="counter"></div></h2> + <div id="postlist" class="threads"> + <?py for thread in latest_age: ?> + <a href="${thread['url']}" class="thread"><span class="brd">[${thread['board_name']}]</span> <span class="cont">#{thread['content']}</span> <span class="rep">(${thread['length']})</span></a> + <?py #endfor ?> + </div> + <hr /> + <div id="ctrl"><a id="refresh" href="/home.html">Actualizar</a> + <span><input id="autorefresh" type="checkbox" /><label for="autorefresh">Automático</label><audio id="machina"><source src="msn.ogg" type="audio/ogg" /></audio></span> + <span><input id="autosound" type="checkbox" checked="checked" disabled="disabled" /><label for="autosound">Sonido</label><input type="hidden" name="limit" id="limit" value="#{latest_age_num}" /></span> + <a href="bai.rss"><img src="/rss.png" style="width:12px;height:12px;margin-right:4px;">RSS</a></div> + </td> + <td id="newstab" class="tab"> + <h2>Blotter</h2> + <div id="news"> + <?py for article in latest_news: ?> + <div class="ni" data-t="#{article['timestamp']}"><div class="ni-d">${article['timestamp_formatted']}</div><div class="ni-m">#{article['message']}</div></div> + <?py #endfor ?> + </div> + </td> +</tr> +<tr> + <td class="tab"> + <h2>Hilos nuevos</h2> + <div id="new_ib" class="threads"> + <?py for thread in new_threads: ?> + <a href="${thread['url']}" class="thread"><span class="brd">[${thread['board_name']}]</span> <span class="cont">#{thread['content']}</span></a> + <?py #endfor ?> + </div> + </td> +</tr> +<tr><td colspan="2" id="footer">★ Bienvenido a Internet 2010-2019 ★</td></tr> +</table> +<div id="preview" style="display:none;"></div> +</body> +</html>
\ No newline at end of file diff --git a/cgi/templates/manage/home.html b/cgi/templates/manage/home.html new file mode 100644 index 0000000..52a206d --- /dev/null +++ b/cgi/templates/manage/home.html @@ -0,0 +1,38 @@ +<?py include('templates/base_top.html') ?> +<?py include('templates/manage/menu.html') ?> +<center> +<div class="replymode">Opciones de home</div> +<form action="#{cgi_url}manage/home" method="post"> +<table> +<tr> + <td class="postblock">Título del sitio</td> + <td><input type="text" name="title" value="#{home['title']}" maxlength="50" /></td> +</tr> +<tr> + <td class="postblock">Eslogan</td> + <td><input type="text" name="slogan" value="#{home['slogan']}" maxlength="100" /></td> +</tr> +<tr> + <td class="postblock">Noticias a mostrar</td> + <td><input type="text" name="news" value="#{home['news']}" maxlength="2"/></td> +</tr> +<tr> + <td class="postblock">Hilos a mostrar</td> + <td><input type="text" name="threads" value="#{home['threads']}" maxlength="2"/></td> +</tr> +<tr> + <td class="postblock">Largo de hilos</td> + <td><input type="text" name="length" value="#{home['length']}" maxlength="3"/></td> +</tr> +<tr> + <td class="postblock">Modo mantención</td> + <td><input type="checkbox" name="maintenance" id="maint" value="1"#{checked(home['maintenance'] == '1')} /><label for="maint"></label></td> +</tr> +</table> +<br /> +<hr /> +<input type="submit" value="Guardar cambios" /> +</form> +</center> +<hr /> +<?py include('templates/base_bottom.html') ?> diff --git a/cgi/templates/manage/news.html b/cgi/templates/manage/news.html new file mode 100644 index 0000000..33b8f49 --- /dev/null +++ b/cgi/templates/manage/news.html @@ -0,0 +1,46 @@ +<?py include('templates/base_top.html') ?> +<?py include('templates/manage/menu.html') ?> +<?py from tenjin.helpers.html import * ?> +<center> +<?py if action == 1: ?> +<div class="replymode">Publicar noticia</div> +<form action="#{cgi_url}manage/news/add?type=1" method="post"> +<?py elif action == 2: ?> +<div class="replymode">Twitter</div> +<form action="#{cgi_url}manage/news/add?type=2" method="post"> +<?py else: ?> +<div class="replymode">Publicar mensaje entre staff</div> +<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> +</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 ?> +</table> +<?py #endif ?> +</center> +<hr /> +<?py include('templates/base_bottom.html') ?> diff --git a/cgi/templates/news.html b/cgi/templates/news.html new file mode 100644 index 0000000..a3e46c2 --- /dev/null +++ b/cgi/templates/news.html @@ -0,0 +1,40 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>#{header}</title> +<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> +<link rel="shortcut icon" href="logo/favicon.ico" /> +<link rel="stylesheet" type="text/css" href="/home.css" /> +<style type="text/css"> +.main{display:inline-block;margin:5px;width:90%;} +h1{font-size:} h2{margin:0;padding:0;font-size:20px;} h3{margin:0;margin-bottom:0.5em;padding:0;font-weight:normal;font-size:14px;} +#newsarea{text-align:left;padding:0 5em 0 5em;} +.message{margin-bottom:2em;} +</style> +</head> +<body> +<center class="main"> +<div class="main"> + <div class="logo" style="margin:0 auto;"></div> + <strong>#{header}</strong><br> + <em>#{slogan}</em> +</div> +<hr /> +<h2>Noticias</h2> +<a href="#{home_url}bai.html" target="_top">Volver</a> +<hr style="margin-bottom:2em;"/> +<?py if posts: ?> +<div id="newsarea"> +<?py for post in posts: ?> + <h2><a href="##{post['id']}" name="#{post['id']}">#</a> ${post['title']}</h2> + <h3><span class="postername">${post['name']}</span> : ${post['timestamp_formatted']}</h3> + <p class="message">#{post['message']}</p> +<?py #endfor ?> +<?py #endif ?> +</div> +<hr /> +<a href="#{home_url}bai.html" target="_top">Volver</a> +<hr /> +<div class="footer">B.a.I. - 2010-2016 · Contacto: <a href="mailto:burocracia@bienvenidoainternet.org">burocracia@bienvenidoainternet.org</a></div> +</center>
\ No newline at end of file |