aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar junk 2021-03-27 20:20:28 -0300
committerLibravatar junk 2021-03-27 20:53:56 -0300
commit9b039e42df4eefb7971a2cfa19bce260ab4ef08f (patch)
tree5ad65f7f0dabaa439745daeae5a7dd374c8a1b03 /cgi
parent0e86988ba9099072dcd2af5142f8f4e988908e9b (diff)
downloadweabot-9b039e42df4eefb7971a2cfa19bce260ab4ef08f.tar.gz
weabot-9b039e42df4eefb7971a2cfa19bce260ab4ef08f.tar.xz
weabot-9b039e42df4eefb7971a2cfa19bce260ab4ef08f.zip
Arreglando diseño para móviles
Diffstat (limited to 'cgi')
-rw-r--r--cgi/templates/mobile/base_top.html4
-rw-r--r--cgi/templates/mobile/board.html6
-rw-r--r--cgi/templates/mobile/latest.html2
-rw-r--r--cgi/templates/mobile/threadlist.html2
-rw-r--r--cgi/templates/mobile/txt_newthread.html2
-rw-r--r--cgi/templates/mobile/txt_thread.html2
-rw-r--r--cgi/templates/mobile/txt_threadlist.html2
-rw-r--r--cgi/templates/navbar.html4
-rw-r--r--cgi/templates/txt_board.html10
-rw-r--r--cgi/templates/txt_thread.en.html1
-rw-r--r--cgi/templates/txt_thread.html11
-rw-r--r--cgi/templates/txt_threadlist.html41
12 files changed, 48 insertions, 39 deletions
diff --git a/cgi/templates/mobile/base_top.html b/cgi/templates/mobile/base_top.html
index 6a6c5bd..aa016a4 100644
--- a/cgi/templates/mobile/base_top.html
+++ b/cgi/templates/mobile/base_top.html
@@ -9,6 +9,6 @@
<?py #endif ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="#{static_url}img/favicon.ico" />
- <link rel="stylesheet" type="text/css" href="#{static_url}css/mobile.css?v=8" />
- <script type="text/javascript" src="#{static_url}js/mobile.js?v=9"></script>
+ <link rel="stylesheet" type="text/css" href="#{static_url}css/mobile.css" />
+ <script type="text/javascript" src="#{static_url}js/mobile.js"></script>
</head>
diff --git a/cgi/templates/mobile/board.html b/cgi/templates/mobile/board.html
index 70b8461..8466c8f 100644
--- a/cgi/templates/mobile/board.html
+++ b/cgi/templates/mobile/board.html
@@ -1,13 +1,13 @@
<?py include('templates/mobile/base_top.html') ?>
-<body class="img"><a name="top"></a>
+<body class="img" data-brd="#{board}"><a name="top"></a>
<div class="nav"><div><a href="//m.bienvenidoainternet.org">Home</a><a href="#{cgi_url}mobile/#{board}/">Volver</a><a href="#form">&#9660;</a></div></div>
<?py for thread in threads: ?>
<div id="thread">
<?py for post in thread['posts']: ?>
<?py if post['IS_DELETED'] == "1": ?>
- <div class="pst"><h3 class="del"><a name="#{post['id']}"></a>No.#{post['id']} eliminado por el usuario.</h3></div>
+ <div class="pst"><h3 class="del"><a name="#{post['id']}"></a>No.#{post['id']} eliminado por usuario.</h3></div>
<?py elif post['IS_DELETED'] == "2": ?>
- <div class="pst"><h3 class="del"><a name="#{post['id']}"></a>No.#{post['id']} eliminado por miembro del staff.</h3></div>
+ <div class="pst"><h3 class="del"><a name="#{post['id']}"></a>No.#{post['id']} eliminado por staff.</h3></div>
<?py else: ?>
<?py if post['parentid'] == "0": ?>
<div class="first"><h1>#{post["subject"]} <span>(#{thread['length']})</span></h1>
diff --git a/cgi/templates/mobile/latest.html b/cgi/templates/mobile/latest.html
index 91c3514..50fae25 100644
--- a/cgi/templates/mobile/latest.html
+++ b/cgi/templates/mobile/latest.html
@@ -1,5 +1,5 @@
<?py include('templates/mobile/base_top.html') ?>
-<body class="txt">
+<body class="txt" data-brd="#{board}">
<div class="top">
<a href="/movil.html"><img src="#{static_url}css/img/0info.png" /><br />Info</a>
Bienvenido a Internet Móvil
diff --git a/cgi/templates/mobile/threadlist.html b/cgi/templates/mobile/threadlist.html
index edb81eb..4247ee9 100644
--- a/cgi/templates/mobile/threadlist.html
+++ b/cgi/templates/mobile/threadlist.html
@@ -1,5 +1,5 @@
<?py include('templates/mobile/base_top.html') ?>
-<body class="img">
+<body class="img" data-brd="#{board}">
<div class="top">
<a href="//m.bienvenidoainternet.org"><img src="#{static_url}css/img/0back.png" /><br />Home</a>
#{board_name}
diff --git a/cgi/templates/mobile/txt_newthread.html b/cgi/templates/mobile/txt_newthread.html
index b19d2fa..aafcdfa 100644
--- a/cgi/templates/mobile/txt_newthread.html
+++ b/cgi/templates/mobile/txt_newthread.html
@@ -1,5 +1,5 @@
<?py include('templates/mobile/base_top.html') ?>
-<body class="#{"txt" if board_type == '1' else "img"}">
+<body class="#{"txt" if board_type == '1' else "img"}" data-brd="#{board}">
<div class="top">
<a href="//m.bienvenidoainternet.org"><img src="#{static_url}css/img/0back.png" /><br />Home</a>
#{board_name}
diff --git a/cgi/templates/mobile/txt_thread.html b/cgi/templates/mobile/txt_thread.html
index 8a19a94..c9b58a8 100644
--- a/cgi/templates/mobile/txt_thread.html
+++ b/cgi/templates/mobile/txt_thread.html
@@ -1,5 +1,5 @@
<?py include('templates/mobile/base_top.html') ?>
-<body class="txt">
+<body class="txt" data-brd="#{board}">
<a name="top"></a>
<?py for thread in threads: ?>
<div class="nav"><div><a href="//m.bienvenidoainternet.org">Home</a><a href="#{cgi_url}mobile/#{board}/">Volver</a><a href="#form">&#9660;</a></div></div>
diff --git a/cgi/templates/mobile/txt_threadlist.html b/cgi/templates/mobile/txt_threadlist.html
index 5e3d133..57cad18 100644
--- a/cgi/templates/mobile/txt_threadlist.html
+++ b/cgi/templates/mobile/txt_threadlist.html
@@ -1,5 +1,5 @@
<?py include('templates/mobile/base_top.html') ?>
-<body class="txt">
+<body class="txt" data-brd="#{board}">
<div class="top">
<a href="//m.bienvenidoainternet.org"><img src="#{static_url}css/img/0back.png" /><br />Home</a>
#{board_name}
diff --git a/cgi/templates/navbar.html b/cgi/templates/navbar.html
index e545776..e40e420 100644
--- a/cgi/templates/navbar.html
+++ b/cgi/templates/navbar.html
@@ -4,7 +4,7 @@
<a href="/musica/">M&uacute;sica</a>
<a href="/letras/">Humanidades</a>
<a href="/zonavip/">Club VIP</a>
-<a href="/world/">World Lobby</a>
+<a href="/world/">World</a>
|
<a href="/dqn/">Club DQN</a>
<a href="/2d/">二次元画像</a>
@@ -12,4 +12,4 @@
<a href="/o/">Oekaki</a>
<a href="/0/">Cero</a>
|
-<a href="/bai/">Meta</a>
+<a href="/bai/">Meta</a> \ No newline at end of file
diff --git a/cgi/templates/txt_board.html b/cgi/templates/txt_board.html
index 63913ea..f819f05 100644
--- a/cgi/templates/txt_board.html
+++ b/cgi/templates/txt_board.html
@@ -46,9 +46,9 @@
<h2><span>[#{titer}:#{thread['length']}]</span><a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{'l50' if thread['length'] > 50 else ''}">#{thread['posts'][0]['subject']}</a></h2>
<?py for post in thread['posts']: ?>
<?py if post['IS_DELETED'] == '1': ?>
- <h4 class="deleted">#{post['num']} Mensaje eliminado por el usuario.</h4>
+ <h4 class="deleted">#{post['num']} Mensaje eliminado por usuario.</h4>
<?py elif post['IS_DELETED'] == '2': ?>
- <h4 class="deleted">#{post['num']} Mensaje eliminado por miembro del staff.</h4>
+ <h4 class="deleted">#{post['num']} Mensaje eliminado por staff.</h4>
<?py else: ?>
<div class="reply#{' first' if post['num'] == 1 else ''}" data-id="#{post['id']}" data-n="#{post['num']}">
<h4>#{post['num']} :
@@ -66,7 +66,7 @@
<?py #endif ?>
<?py #endif ?> : <span class="date" data-unix="#{post['timestamp']}">#{post['timestamp_formatted']}</span></h4>
<?py if post['file']: ?>
- <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /><div>${int(post['file_size'])//1024}KB ${post['file'].split(".")[1].upper()}</div></a>
+ <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" alt="${post['file']}-(${post['file_size']}B)" /></a>
<?py #endif ?>
<div class="msg">
#{post['message']}
@@ -81,7 +81,7 @@
<form id="postform#{thread['id']}" class="postform" action="#{cgi_url}post" method="post" enctype="multipart/form-data">
<input type="hidden" name="board" value="#{board}" /><input type="hidden" name="parent" value="#{thread['id']}" /><input type="hidden" name="password" value="" />
<div style="display:none"><input type="text" name="name" size="15" /> <input type="text" name="email" size="15" /></div>
- <span><input type="submit" value="Responder" /></span> <span><span>Nombre:&nbsp;</span><input type="text" name="fielda" size="15" /><span>&nbsp;E-mail:&nbsp;</span><input type="text" name="fieldb" size="15" /></span>
+ <input type="submit" value="Responder" /> <span><span>Nombre: </span><input type="text" name="fielda" size="15" /> <span>E-mail: </span><input type="text" name="fieldb" size="15" /></span>
<div class="formpad">
<textarea name="message" cols="70" rows="5"></textarea>
<?py if allow_image_replies: ?><br /><input type="file" name="file" /><?py #endif ?>
@@ -135,4 +135,4 @@
</div>
<center id="footer"><a href="/" target="_top">Bienvenido a Internet BBS/IB</a> weabot.py <?py include('templates/revision.html') ?> + FastCGI + tenjin<br />No se ponga sensible, baisano...</center>
</body>
-</html>
+</html> \ No newline at end of file
diff --git a/cgi/templates/txt_thread.en.html b/cgi/templates/txt_thread.en.html
index c820a78..b9215f7 100644
--- a/cgi/templates/txt_thread.en.html
+++ b/cgi/templates/txt_thread.en.html
@@ -1,6 +1,5 @@
<?py include('templates/txt_base_top.html') ?>
<body class="threadpage" data-brd="#{board}">
-<div id="main_nav" style="display:none;"><a href="/" target="_top">Bienvenido a Internet</a> | <?py include('templates/navbar.html') ?></div>
<?py if threads: ?>
<?py for thread in threads: ?>
<div id="thread_nav">
diff --git a/cgi/templates/txt_thread.html b/cgi/templates/txt_thread.html
index be257e6..55f5e82 100644
--- a/cgi/templates/txt_thread.html
+++ b/cgi/templates/txt_thread.html
@@ -1,6 +1,5 @@
<?py include('templates/txt_base_top.html') ?>
<body class="threadpage" data-brd="#{board}">
-<div id="main_nav" style="display:none;"><a href="/" target="_top">Bienvenido a Internet</a> | <?py include('templates/navbar.html') ?></div>
<?py if threads: ?>
<?py for thread in threads: ?>
<div id="thread_nav">
@@ -28,9 +27,9 @@
<h3>#{thread['subject']} <span>(${(str(thread['length'])+" respuestas") if thread['length']>1 else "Una respuesta"})</span></h3>
<?py for post in thread['posts']: ?>
<?py if post['IS_DELETED'] == '1': ?>
- <h4 class="deleted">#{post['num']} : Mensaje eliminado por el usuario.</h4>
+ <h4 class="deleted">#{post['num']} : Mensaje eliminado por usuario.</h4>
<?py elif post['IS_DELETED'] == '2': ?>
- <h4 class="deleted">#{post['num']} : Mensaje eliminado por miembro del staff.</h4>
+ <h4 class="deleted">#{post['num']} : Mensaje eliminado por staff.</h4>
<?py else: ?>
<?py if post['num'] == 1: ?>
<div class="reply first" data-n="#{post['num']}">
@@ -53,7 +52,7 @@
<?py #endif ?> : <span class="date" data-unix="#{post['timestamp']}">#{post['timestamp_formatted']}</span>
<span class="del"><a href="#{cgi_url}report/#{board}/#{post['id']}/#{post['num']}">rep</a> <a href="#">del</a></span></h4>
<?py if post['file']: ?>
- <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /><div>${int(post['file_size'])//1024}KB ${post['file'].split(".")[1].upper()}</div></a>
+ <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" alt="${post['file']}-(${post['file_size']}B)" /></a>
<?py #endif ?>
<div class="msg">#{post['message']}</div>
</div>
@@ -89,7 +88,7 @@
<input type="hidden" name="board" value="#{board}" /><input type="hidden" name="parent" value="#{thread['id']}" /><input type="hidden" name="password" value="" />
<?py if thread['locked'] != '1': ?>
<div style="display:none"><input type="text" name="name" size="13" /> <input type="text" name="email" size="13" /></div>
- <span><input type="submit" value="Responder" accesskey="z" /> <input type="button" name="preview" value="Previsualizar" /></span> <span><span>Nombre:&nbsp;</span><input type="text" name="fielda" size="13" accesskey="n" /><span>&nbsp;E-mail:&nbsp;</span><input type="text" name="fieldb" size="13" accesskey="e" /></span><br />
+ <input type="submit" value="Responder" accesskey="z" /> <input type="button" name="preview" value="Previsualizar" /> <span><span>Nombre: </span><input type="text" name="fielda" size="13" accesskey="n" /> <span>E-mail: </span><input type="text" name="fieldb" size="13" accesskey="e" /></span><br />
<textarea name="message" cols="80" rows="7" accesskey="m"></textarea><br />
<div id="preview#{thread['id']}" class="msg" style="display:none"></div>
<?py if allow_image_replies: ?>
@@ -106,4 +105,4 @@
</div>
<a name="bottom"></a>
</body>
-</html>
+</html> \ No newline at end of file
diff --git a/cgi/templates/txt_threadlist.html b/cgi/templates/txt_threadlist.html
index 0d68abb..74df30e 100644
--- a/cgi/templates/txt_threadlist.html
+++ b/cgi/templates/txt_threadlist.html
@@ -1,28 +1,38 @@
<?py include('templates/txt_base_top.html') ?>
-<body class="threads" data-brd="#{board}">
+<body class="mainpage" data-brd="#{board}">
<div id="main_nav"><a href="/" target="_top">Bienvenido a Internet</a> | <?py include('templates/navbar.html') ?></div>
<?py if banner_url: ?>
<img class="banner" src="#{banner_url}" style="width:#{banner_width}px;height:#{banner_height}px;" />
<?py #endif ?>
<div id="titlebox" class="outerbox">
- <div class="innerbox"><h1>#{board_long}</h1></div>
+ <div class="innerbox">
+ <div class="threadnav"><a href="#menu" title="Ir a lista de hilos">&#9632;</a><a href="#1" title="Ir a primer hilo">&#9660;</a></div>
+ <h1>#{board_long}</h1>
+ <?py if postarea_desc: ?>
+ <div id="rules">#{postarea_desc}</div>
+ <?py #endif ?>
+ <form method="get" action="/tools/search.py" id="search"><input type="text" name="q" value="" /><input type="hidden" name="board" value="#{board}" /><input type="submit" value="Buscar en mensajes activos" /><input type="submit" value="Buscar en archivo" formaction="/tools/search_kako.py" /></form>
+ </div>
<div class="innerbox links"><b>¿Eres nuevo?</b> <a href="/guia.html"><b>C&oacute;mo postear</b></a> | <a href="/faq.html"><b>Preguntas frecuentes</b></a> | <a href="/bai/"><b>Contacto</b></a>
<?py if not force_css: ?>| <b>Estilo: </b><select id="styles">
<?py for title in txt_styles: ?><option value="#{title}">#{title}</option><?py #endfor ?></select>
<?py #endif ?>
- </div>
</div>
+</div>
+<?py if postarea_extra: ?>
+<div class="outerbox"><div class="innerbox">#{postarea_extra}</div></div>
+<?py #endif ?>
<a name="menu"></a>
<div id="threadbox" class="outerbox"><div class="innerbox">
<div id="threadlinks"><a href="#{boards_url}#{board}/"><b>Volver al BBS</b></a> <a href="/#{board}/kako/"><b>Ver hilos archivados</b></a> <a href="#newthread"><b>Crear nuevo hilo</b></a></div>
- <div id="listmenu">Orden: <a class="l_s" href="#">Normal</a> <a class="l_s" href="#">Edad</a> <a class="l_s" href="#">Largo</a> <a class="l_s" href="#">Rapidez</a> <a class="l_s" href="#">Aleatorio</a> / Modo: <a class="l_d" href="#">Lista</a> <a class="l_d" href="#">Malla</a> / Buscar: <input id="l_sr" style="padding:0px;width:100px;" type="text"></div>
+ <div id="listmenu">Orden: <a class="l_s" href="#">Normal</a> <a class="l_s" href="#">Edad</a> <a class="l_s" href="#">Largo</a> <a class="l_s" href="#">Rapidez</a> <a class="l_s" href="#">Aleatorio</a> / Modo: <a class="l_d" href="#">Lista</a> <a class="l_d" href="#">Malla</a> / Filtrar: <input id="l_sr" style="padding:0px;width:100px;" type="text"></div>
</div></div>
<div id="content" class="list">
<div id="header" class="row">
<div>#</div>
<div style="width:100%;">Asunto</div>
- <div>Resp.</div>
- <div class="hdate">Última respuesta</div>
+ <div>Posts</div>
+ <div class="hdate">Último</div>
</div>
<?py iter = 1 ?>
<?py for thread in more_threads: ?>
@@ -39,27 +49,28 @@
<div id="createbox" class="outerbox">
<div class="extrabox"></div>
<div class="innerbox">
+ <div class="threadnav"><a href="#menu" title="Lista de hilos">&#9632;</a></div>
<h5>Formulario de nuevo hilo</h5>
<form id="postform0" action="#{cgi_url}post" method="post" enctype="multipart/form-data">
<input type="hidden" name="board" value="#{board}" /><input type="hidden" name="password" value="" />
- <table style="max-width:600px;">
+ <table style="max-width:600px">
<tr>
- <td style="text-align:right;">Asunto:</td>
- <td colspan="3" style="width:100%;"><input type="text" name="subject" size="50" maxlength="100" /></td>
+ <td class="pblock">Asunto:</td>
+ <td colspan="3" style="width:100%"><input type="text" name="subject" size="50" maxlength="100" /></td>
<td><input type="submit" value="Crear nuevo hilo" /></td>
</tr>
<tr>
- <td style="text-align:right;">Nombre:</td><td><input type="text" name="fielda" /></td>
- <td style="text-align:right;">E-mail:</td><td><input type="text" name="fieldb" /></td>
+ <td class="pblock">Nombre:</td><td><input type="text" name="fielda" /></td>
+ <td class="pblock">E-mail:</td><td><input type="text" name="fieldb" /></td>
<td><input type="button" name="preview" value="Previsualizar" /></td>
</tr>
- <tr id="options" style="display:none;"><td></td><td colspan="4"><div id="preview0" class="msg"></div></td></tr>
- <tr><td style="text-align:right;">Mensaje:</td><td colspan="4"><textarea name="message" cols="70" rows="10"></textarea></td></tr>
+ <tr id="options" style="display:none"><td></td><td colspan="4"><div id="preview0" class="msg"></div></td></tr>
+ <tr><td class="pblock">Mensaje:</td><td colspan="4"><textarea name="message" cols="70" rows="10"></textarea></td></tr>
<?py if allow_images: ?>
- <tr><td style="text-align:right;">Archivo:</td><td colspan="4"><input type="file" name="file" /></td></tr>
+ <tr><td class="pblock">Archivo:</td><td colspan="4"><input type="file" name="file" /></td></tr>
<?py #endif ?>
</table>
- <div style="display:none;">Trampa: <input type="text" name="name" maxlength="50" /> <input type="text" name="email" maxlength="50" /></div>
+ <div style="display:none">Trampa: <input type="text" name="name" maxlength="50" /> <input type="text" name="email" maxlength="50" /></div>
</form>
</div>
</div>