diff options
author | Choom | 2022-12-11 01:49:21 -0300 |
---|---|---|
committer | Choom | 2022-12-11 02:18:41 -0300 |
commit | 7d31509782c87713e30cc7a400b9b9ee6f7eb0ff (patch) | |
tree | ffcebdbfcf942c3b39b5be110a1c7cd4c9ef9ef6 /cgi/templates/txt_board.html | |
parent | f38017151f3efdd162cdba302bb8366afef66350 (diff) | |
download | weabot-7d31509782c87713e30cc7a400b9b9ee6f7eb0ff.tar.gz weabot-7d31509782c87713e30cc7a400b9b9ee6f7eb0ff.tar.xz weabot-7d31509782c87713e30cc7a400b9b9ee6f7eb0ff.zip |
Agregando div a respuestas
Agregando div a respuestas
Agregando div a respuestas
Agregando div a respuestas
Agregando div a respuestas
Agregando div a respuestas
Diffstat (limited to 'cgi/templates/txt_board.html')
-rw-r--r-- | cgi/templates/txt_board.html | 48 |
1 files changed, 35 insertions, 13 deletions
diff --git a/cgi/templates/txt_board.html b/cgi/templates/txt_board.html index 375613a..3cebba3 100644 --- a/cgi/templates/txt_board.html +++ b/cgi/templates/txt_board.html @@ -41,9 +41,11 @@ <?py titer = 1 ?> <?py for thread in threads: ?> <a name="#{titer}"></a> -<div class="thread"><div class="innerbox"> +<div class="thread"> +<div class="innerbox"> <div class="threadnav"><a href="#menu" title="Lista de hilos">■</a><a href="##{(titer-1) if titer>1 else len(threads)}" title="Hilo anterior">▲</a><a href="##{(titer+1) if titer<len(threads) else '1'}" title="Hilo siguiente">▼</a></div> <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> +<div class="replies"> <?py for post in thread['posts']: ?> <?py if post['IS_DELETED'] == 1: ?> <div class="reply deleted" id="p#{post['id']}" data-n="#{post['num']}"><h4>#{post['num']} : Mensaje eliminado por usuario.</h4></div> @@ -66,7 +68,9 @@ <?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']}" title="${post['file']}-(${post['file_size']} B)" /></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']}" title="${post['file']}-(${post['file_size']} B)" /> + </a> <?py #endif ?> <div class="msg"> #{post['message']} @@ -77,10 +81,11 @@ </div> <?py #endif ?> <?py #endfor ?> +</div> <?py if not thread['locked']: ?> <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> + <div style="display:none;"><input type="text" name="name" size="15" /> <input type="text" name="email" size="15" /></div> <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> @@ -99,8 +104,10 @@ <a href="#menu"><b>Lista de hilos</b></a> <a href="#newthread"><b>Nuevo hilo</b></a> </div> -</div></form> -</div></div> +</div> +</form> +</div> +</div> <?py titer += 1 ?> <?py #endfor ?> <?py #endif ?> @@ -119,20 +126,35 @@ <td><input type="submit" value="Crear nuevo hilo" /></td> </tr> <tr> - <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 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 class="pblock">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 class="pblock">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> -<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> +<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>
\ No newline at end of file +</html> |