aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar Choom 2022-12-11 01:49:21 -0300
committerLibravatar Choom 2022-12-11 02:18:41 -0300
commit7d31509782c87713e30cc7a400b9b9ee6f7eb0ff (patch)
treeffcebdbfcf942c3b39b5be110a1c7cd4c9ef9ef6 /cgi
parentf38017151f3efdd162cdba302bb8366afef66350 (diff)
downloadweabot-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')
-rw-r--r--cgi/template.py2
-rw-r--r--cgi/templates/txt_board.en.html81
-rw-r--r--cgi/templates/txt_board.html48
-rw-r--r--cgi/templates/txt_thread.en.html108
-rw-r--r--cgi/templates/txt_thread.html6
5 files changed, 93 insertions, 152 deletions
diff --git a/cgi/template.py b/cgi/template.py
index 8c3fc19..62f62a9 100644
--- a/cgi/template.py
+++ b/cgi/template.py
@@ -46,7 +46,7 @@ def renderTemplate(template, template_values={}, mobile=False, noindex=False):
# if board:
if template in ["board.html", "threadlist.html", "catalog.html", "kako.html", "paint.html"] or template[0:3] == "txt":
# TODO HACK
- if board['dir'] == 'world' and not mobile and (template == 'txt_board.html' or template == 'txt_thread.html'):
+ if board['dir'] == 'world' and not mobile and (template == 'txt_board.html'):
template = template[:-4] + 'en.html'
elif board['dir'] == '2d' and template == 'board.html' and not mobile:
template = template[:-4] + 'jp.html'
diff --git a/cgi/templates/txt_board.en.html b/cgi/templates/txt_board.en.html
index 8c94361..7f280b4 100644
--- a/cgi/templates/txt_board.en.html
+++ b/cgi/templates/txt_board.en.html
@@ -6,17 +6,18 @@
<?py #endif ?>
<div id="titlebox" class="outerbox">
<div class="innerbox">
- <div class="threadnav"><a href="#menu" title="Thread list">&#9632;</a><a href="#1" title="Next thread">&#9660;</a></div>
+ <div class="threadnav"><a href="#menu" title="Thread list">&#9632;</a><a href="#1" title="Top thread">&#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="Search active posts" /><input type="submit" value="Search archives" formaction="/tools/search_kako.py" /></form>
</div>
- <div class="innerbox links"><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">
+ <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>Theme: </b><select id="styles">
<?py for title in txt_styles: ?><option value="#{title}">#{title}</option><?py #endfor ?></select>
- <?py #endif ?></div>
+ <?py #endif ?>
+</div>
</div>
<?py if postarea_extra: ?>
<div class="outerbox"><div class="innerbox">#{postarea_extra}</div></div>
@@ -24,7 +25,7 @@
<a name="menu"></a>
<?py if threads: ?>
<div id="threadbox" class="outerbox"><div class="innerbox">
- <div id="threadlinks"><a href="#{cgi_url}threadlist/#{board}"><b>View all threads</b></a> <a href="kako/"><b>View archive</b></a> <a href="#newthread"><b>Create new thread</b></a></div>
+ <div id="threadlinks"><a href="#{cgi_url}threadlist/#{board}"><b>All threads</b></a> <a href="kako/"><b>Archive</b></a> <a href="#newthread"><b>New thread</b></a></div>
<div id="threadlist">
<?py iter = 1 ?>
<?py for thread in threads: ?>
@@ -40,14 +41,16 @@
<?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="Thread list">&#9632;</a><a href="##{(titer-1) if titer>1 else len(threads)}" title="Previous thread">&#9650;</a><a href="##{(titer+1) if titer<len(threads) else '1'}" title="Next thread">&#9660;</a></div>
-<h2><small>[#{titer}:#{thread['length']}]</small><a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{'l50' if thread['length'] > 50 else ''}">#{thread['posts'][0]['subject']}</a></h2>
+<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']} : Post deleted by user.</h4></div>
-<?py elif post['IS_DELETED'] == '2': ?>
- <div class="reply deleted" id="p#{post['id']}" data-n="#{post['num']}"><h4>#{post['num']} : Post deleted by staff.</h4></div>
+<?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>
+<?py elif post['IS_DELETED'] == 2: ?>
+ <div class="reply deleted" id="p#{post['id']}" data-n="#{post['num']}"><h4>#{post['num']} : Mensaje eliminado por staff.</h4></div>
<?py else: ?>
<div class="reply#{' first' if post['num'] == 1 else ''}" id="p#{post['id']}" data-n="#{post['num']}">
<h4>#{post['num']} :
@@ -65,27 +68,30 @@
<?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']}
<?py if post['shortened']: ?>
- <div class="abbrev">(Post is too long... Click <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{post['num']}">here</a> to view the whole post.)</div>
+ <div class="abbrev">(Post is too long... Click <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{post['num']}">here</a> to view.)</div>
<?py #endif ?>
</div>
</div>
<?py #endif ?>
<?py #endfor ?>
-<?py if thread['locked'] != '1': ?>
+</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>
- <span><input type="submit" value="Reply" /></span> <span><span>Name:&nbsp;</span><input type="text" name="fielda" size="15" /><span>&nbsp;E-mail:&nbsp;</span><input type="text" name="fieldb" size="15" /></span><br />
+ <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>Name: </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 ?>
<?py else: ?>
-<form class="postform"><div class="locked">This thread has been closed. You cannot post in it any longer.</div><div class="formpad">
+<form class="postform"><div class="locked">Thread has been closed. You cannot reply anymore.</div><div class="formpad">
<?py #endif ?>
<div class="threadlinks">
<a href="#{boards_url}#{board}/read/#{thread['timestamp']}/"><b>Entire thread</b></a>
@@ -98,8 +104,10 @@
<a href="#menu"><b>Thread list</b></a>
<a href="#newthread"><b>New thread</b></a>
</div>
-</div></form>
-</div></div>
+</div>
+</form>
+</div>
+</div>
<?py titer += 1 ?>
<?py #endfor ?>
<?py #endif ?>
@@ -115,23 +123,38 @@
<tr>
<td class="pblock">Subject:</td>
<td colspan="3" style="width:100%"><input type="text" name="subject" size="50" maxlength="100" /></td>
- <td><input type="submit" value="Create new thread" /></td>
+ <td><input type="submit" value="Crear nuevo hilo" /></td>
+ </tr>
+ <tr>
+ <td class="pblock">Name:</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">Name:</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="Preview" /></td>
+ <td class="pblock">Body:</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">Body:</td><td colspan="4"><textarea name="message" cols="70" rows="10"></textarea></td></tr>
<?py if allow_images: ?>
- <tr><td class="pblock">File:</td><td colspan="4"><input type="file" name="file" /></td></tr>
+ <tr>
+ <td class="pblock">File:</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 />それがBaIクオリティー!</center>
+<center id="footer">
+ <a href="/" target="_top">Bienvenido a Internet BBS/IB</a> weabot.py <?py include('templates/revision.html') ?> + FastCGI + tenjin
+ <br />
+ ゆっくりしていってね…
+</center>
</body>
-</html> \ No newline at end of file
+</html>
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">&#9632;</a><a href="##{(titer-1) if titer>1 else len(threads)}" title="Hilo anterior">&#9650;</a><a href="##{(titer+1) if titer<len(threads) else '1'}" title="Hilo siguiente">&#9660;</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>
diff --git a/cgi/templates/txt_thread.en.html b/cgi/templates/txt_thread.en.html
deleted file mode 100644
index c8348a1..0000000
--- a/cgi/templates/txt_thread.en.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<?py include('templates/txt_base_top.html') ?>
-<body class="threadpage" data-brd="#{board}">
-<?py if threads: ?>
-<?py for thread in threads: ?>
-<div id="thread_nav">
- <a href="/" name="top" target="_top">Bienvenido a Internet</a>
- <a href="#{boards_url}#{board}/">■Return to BBS■</a>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/">Entire thread</a>
- <?py if thread['length'] > 100: ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/1-100">First 100</a>
- <?py #endif ?>
- <?py for i in range(thread['length'] // 100): ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{(i+1)*100+1}-#{(i+2)*100}">#{(i+1)*100+1}-</a>
- <?py #endfor ?>
- <?py if thread['length'] > 51: ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/l50">Last 50</a>
- <?py #endif ?>
- <a href="#bottom">&#9660;Bottom&#9660;</a>
-</div>
-<hr />
-<?py if thread['length'] > 1000: ?>
- <div class="stop red">The thread got over 1000 posts and has been closed.</div>
-<?py elif thread['length'] > 950: ?>
- <div class="warn yellow">The thread has reached 950 posts. When it reaches 1000 posts it will be closed.</div>
-<?py elif thread['length'] > 900: ?>
- <div class="warn yellow">The thread has reached 900 posts. When it reaches 1000 posts it will be closed.</div>
-<?py #endif ?>
-<div class="thread" data-length="#{thread['length']}">
- <h3>#{thread['subject']} <span>(${(str(thread['length'])+" replies") if thread['length']>1 else "1 reply"})</span></h3>
- <?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']} : Post deleted by user.</h4></div>
- <?py elif post['IS_DELETED'] == 2: ?>
- <div class="reply deleted" id="p#{post['id']}" data-n="#{post['num']}"><h4>#{post['num']} : Post deleted by staff.</h4></div>
- <?py else: ?>
- <div class="reply#{' first' if post['num'] == 1 else ''}" id="p#{post['id']}" data-n="#{post['num']}">
- <h4>#{post['num']} :
- <?py if post['email']: ?>
- <?py if post['tripcode']: ?>
- <a href="mailto:#{post['email']}"><span class="name"><b>#{post['name']}</b> #{post['tripcode']}</span></a>
- <?py else: ?>
- <a href="mailto:#{post['email']}"><span class="name"><b>#{post['name']}</b></span></a>
- <?py #endif ?>
- <?py else: ?>
- <?py if post['tripcode']: ?>
- <span class="name"><b>#{post['name']}</b> #{post['tripcode']}</span>
- <?py else: ?>
- <span class="name"><b>#{post['name']}</b></span>
- <?py #endif ?>
- <?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']}" title="${post['file']}-(${post['file_size']} B)" /></a>
- <?py #endif ?>
- <div class="msg">
- #{post['message']}
- </div>
- </div>
- <?py #endif ?>
- <?py #endfor ?>
- <div id="size">#{thread['size']}</div>
-</div>
-<hr />
-<?py if not thread['locked']: ?>
- <div class="lastposts"><a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{thread['length']}-n" id="n">Show new posts</a></div>
- <hr />
-<?py #endif ?>
-<?py if thread['length'] > 1000: ?>
- <div class="stop red">The thread got over 1000 posts and has been closed.</div>
-<?py elif thread['length'] > 950: ?>
- <div class="warn red">The thread has reached 950 posts. When it reaches 1000 posts it will be closed.</div>
-<?py elif thread['length'] > 900: ?>
- <div class="warn yellow">The thread has reached 900 posts. When it reaches 1000 posts it will be closed.</div>
-<?py #endif ?>
-<form id="postform#{thread['id']}" class="postform" name="postform" action="#{cgi_url}post" method="post" enctype="multipart/form-data">
- <div class="threadlinks">
- <a href="#{boards_url}#{board}">■Return to BBS■</a>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/">Entire thread</a>
- <?py if prevrange: ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{prevrange}">Previous 100</a>
- <?py #endif ?>
- <?py if nextrange: ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{nextrange}">Next 100</a>
- <?py #endif ?>
- <?py if thread['length'] > 51: ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/l50">Last 50</a>
- <?py #endif ?>
- <a href="#top">&#9650;Top&#9650;</a>
- </div>
- <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>Name:&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 />
- <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: ?>
- <input type="file" name="file" />
- <?py #endif ?>
- <?py else: ?>
- <div class="locked">This thread has been closed. You cannot post in it any longer.</div>
- <?py #endif ?>
-</form>
-<?py #endfor ?>
-<?py #endif ?>
-<div class="end">weabot.py ver <?py include('templates/revision.html') ?> Bienvenido a Internet BBS/IB</div>
-<a name="bottom"></a>
-</body>
-</html>
diff --git a/cgi/templates/txt_thread.html b/cgi/templates/txt_thread.html
index d2d3224..907d660 100644
--- a/cgi/templates/txt_thread.html
+++ b/cgi/templates/txt_thread.html
@@ -27,6 +27,7 @@
<?py #endif ?>
<div class="thread" data-length="#{thread['length']}">
<h3>#{thread['subject']} <span>(${(str(thread['length'])+" respuestas") if thread['length']>1 else "Una respuesta"})</span></h3>
+ <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>
@@ -56,6 +57,7 @@
</div>
<?py #endif ?>
<?py #endfor ?>
+ </div>
<div id="size">#{thread['size']}</div>
</div>
<hr />
@@ -65,6 +67,8 @@
<?py #endif ?>
<?py if thread['length'] > 1000: ?>
<div class="stop red">El hilo superó los 1000 mensajes y ha sido cerrado. Ya no se puede postear en él.</div>
+<?py elif thread['length'] > 950: ?>
+ <div class="warn red">El hilo ha recibido más de 950 mensajes. Cuando llegue a 1000 será cerrado.</div>
<?py elif thread['length'] > 900: ?>
<div class="warn yellow">El hilo ha recibido más de 900 mensajes. Cuando llegue a 1000 será cerrado.</div>
<?py #endif ?>
@@ -85,7 +89,7 @@
</div>
<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>
+ <div style="display:none;"><input type="text" name="name" size="13" /> <input type="text" name="email" size="13" /></div>
<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>