aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/txt_board.html
diff options
context:
space:
mode:
authorLibravatar neptune 2021-11-12 01:15:38 -0300
committerLibravatar neptune 2021-11-12 01:15:38 -0300
commite34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3 (patch)
tree88e5d4ee438a0b413bf83f7cc763def464da50d7 /cgi/templates/txt_board.html
parent3693f572b119cf172be0f669313bdb8314cbbdc2 (diff)
downloadweabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.tar.gz
weabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.tar.xz
weabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.zip
ActualizaciĆ³n inicial a Python 3
Diffstat (limited to 'cgi/templates/txt_board.html')
-rw-r--r--cgi/templates/txt_board.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi/templates/txt_board.html b/cgi/templates/txt_board.html
index 7b0207b..375613a 100644
--- a/cgi/templates/txt_board.html
+++ b/cgi/templates/txt_board.html
@@ -45,9 +45,9 @@
<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>
<?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']}">
@@ -77,7 +77,7 @@
</div>
<?py #endif ?>
<?py #endfor ?>
-<?py if thread['locked'] != '1': ?>
+<?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>