aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/txt_thread.en.html
diff options
context:
space:
mode:
authorLibravatar neptune 2021-11-15 13:35:08 -0300
committerLibravatar neptune 2021-11-15 13:35:08 -0300
commita16f23f034fb942b44e0665224d499af57aec1ad (patch)
tree8733eec9968d38153f1e0cfa2ca76f664dfb1773 /cgi/templates/txt_thread.en.html
parente34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3 (diff)
downloadweabot-a16f23f034fb942b44e0665224d499af57aec1ad.tar.gz
weabot-a16f23f034fb942b44e0665224d499af57aec1ad.tar.xz
weabot-a16f23f034fb942b44e0665224d499af57aec1ad.zip
Nueva revisiĆ³n Py3
Diffstat (limited to 'cgi/templates/txt_thread.en.html')
-rw-r--r--cgi/templates/txt_thread.en.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/cgi/templates/txt_thread.en.html b/cgi/templates/txt_thread.en.html
index 4b16fca..c8348a1 100644
--- a/cgi/templates/txt_thread.en.html
+++ b/cgi/templates/txt_thread.en.html
@@ -9,7 +9,7 @@
<?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): ?>
+ <?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'])+" replies") if thread['length']>1 else "1 reply"})</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']} : Post deleted by user.</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']} : 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']}">
@@ -61,7 +61,7 @@
<div id="size">#{thread['size']}</div>
</div>
<hr />
-<?py if thread['locked'] != '1': ?>
+<?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 ?>
@@ -105,4 +105,4 @@
<div class="end">weabot.py ver <?py include('templates/revision.html') ?> Bienvenido a Internet BBS/IB</div>
<a name="bottom"></a>
</body>
-</html> \ No newline at end of file
+</html>