diff options
author | neptune | 2021-11-12 01:15:38 -0300 |
---|---|---|
committer | neptune | 2021-11-12 01:15:38 -0300 |
commit | e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3 (patch) | |
tree | 88e5d4ee438a0b413bf83f7cc763def464da50d7 /cgi/templates/txt_thread.html | |
parent | 3693f572b119cf172be0f669313bdb8314cbbdc2 (diff) | |
download | weabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.tar.gz weabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.tar.xz weabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.zip |
ActualizaciĆ³n inicial a Python 3
Diffstat (limited to 'cgi/templates/txt_thread.html')
-rw-r--r-- | cgi/templates/txt_thread.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cgi/templates/txt_thread.html b/cgi/templates/txt_thread.html index c8d70d1..d2d3224 100644 --- a/cgi/templates/txt_thread.html +++ b/cgi/templates/txt_thread.html @@ -9,7 +9,7 @@ <?py if thread['length'] > 100: ?> <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/1-100">Primeros 100</a> <?py #endif ?> - <?py for i in range(thread['length'] / 100): ?> + <?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: ?> @@ -28,9 +28,9 @@ <div class="thread" data-length="#{thread['length']}"> <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': ?> + <?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': ?> + <?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']}"> @@ -59,7 +59,7 @@ <div id="size">#{thread['size']}</div> </div> <hr /> -<?py if thread['locked'] != '1': ?> +<?py if thread['locked'] != 1: ?> <div class="lastposts"><a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{thread['length']}-n" id="n">Ver nuevos posts</a></div> <hr /> <?py #endif ?> @@ -84,7 +84,7 @@ <a href="#top">▲Subir▲</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': ?> + <?py if thread['locked'] != 1: ?> <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 /> @@ -103,4 +103,4 @@ </div> <a name="bottom"></a> </body> -</html>
\ No newline at end of file +</html> |