aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/mobile
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/templates/mobile')
-rw-r--r--cgi/templates/mobile/board.html12
-rw-r--r--cgi/templates/mobile/txt_thread.html2
2 files changed, 7 insertions, 7 deletions
diff --git a/cgi/templates/mobile/board.html b/cgi/templates/mobile/board.html
index 8466c8f..f32a12c 100644
--- a/cgi/templates/mobile/board.html
+++ b/cgi/templates/mobile/board.html
@@ -4,12 +4,12 @@
<?py for thread in threads: ?>
<div id="thread">
<?py for post in thread['posts']: ?>
- <?py if post['IS_DELETED'] == "1": ?>
+ <?py if post['IS_DELETED'] == 1: ?>
<div class="pst"><h3 class="del"><a name="#{post['id']}"></a>No.#{post['id']} eliminado por usuario.</h3></div>
- <?py elif post['IS_DELETED'] == "2": ?>
+ <?py elif post['IS_DELETED'] == 2: ?>
<div class="pst"><h3 class="del"><a name="#{post['id']}"></a>No.#{post['id']} eliminado por staff.</h3></div>
<?py else: ?>
- <?py if post['parentid'] == "0": ?>
+ <?py if not post['parentid']: ?>
<div class="first"><h1>#{post["subject"]} <span>(#{thread['length']})</span></h1>
<?py else: ?>
<div class="pst">
@@ -21,11 +21,11 @@
<div class="msg">#{post['message']}</div></div>
<?py #endif ?>
<?py #endfor ?>
-<?py if threads[0]['posts'][0]['locked'] != "1": ?>
+<?py if threads[0]['posts'][0]['locked'] != 1: ?>
<a href="./#{thread['id']}" id="n">Recargar</a><span id="n2"></span>
<?py #endif ?>
<div class="nav"><div><a href="//m.bienvenidoainternet.org">Home</a><a href="#{cgi_url}mobile/#{board}/">Volver</a><a href="#top">&#9650;</a></div></div>
-<?py if threads[0]['posts'][0]['locked'] == "1": ?>
+<?py if threads[0]['posts'][0]['locked'] == 1: ?>
<div class="warn red" style="text-align:center;">El hilo ha sido cerrado. Ya no se puede postear en &eacute;l.</div>
<?py else: ?>
<form name="postform" id="postform" action="/cgi/post" method="post" enctype="multipart/form-data">
@@ -52,4 +52,4 @@
<?py #endfor ?>
<a name="form"></a>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/cgi/templates/mobile/txt_thread.html b/cgi/templates/mobile/txt_thread.html
index 3df16fc..8397fc7 100644
--- a/cgi/templates/mobile/txt_thread.html
+++ b/cgi/templates/mobile/txt_thread.html
@@ -71,4 +71,4 @@
<a name="form"></a>
<?py #endfor ?>
</body>
-</html> \ No newline at end of file
+</html>