diff options
author | neptune | 2022-11-25 17:59:09 -0300 |
---|---|---|
committer | neptune | 2022-11-25 17:59:09 -0300 |
commit | b09e855283b8521caa35e1aa0762cf8e986559d4 (patch) | |
tree | 2d1459eba210e2f7415b00d450fbc7cce700ff2f /cgi/templates | |
parent | 0889034f67f8d8cadc98dcbefcd7021b42a00408 (diff) | |
download | weabot-b09e855283b8521caa35e1aa0762cf8e986559d4.tar.gz weabot-b09e855283b8521caa35e1aa0762cf8e986559d4.tar.xz weabot-b09e855283b8521caa35e1aa0762cf8e986559d4.zip |
Actualizado repo
Diffstat (limited to 'cgi/templates')
-rw-r--r-- | cgi/templates/board.html | 6 | ||||
-rw-r--r-- | cgi/templates/board.jp.html | 6 | ||||
-rw-r--r-- | cgi/templates/home.html | 2 | ||||
-rw-r--r-- | cgi/templates/mobile/board.html | 12 | ||||
-rw-r--r-- | cgi/templates/mobile/txt_thread.html | 2 | ||||
-rw-r--r-- | cgi/templates/paint.html | 8 |
6 files changed, 19 insertions, 17 deletions
diff --git a/cgi/templates/board.html b/cgi/templates/board.html index 70718b8..3732ba9 100644 --- a/cgi/templates/board.html +++ b/cgi/templates/board.html @@ -241,11 +241,11 @@ <div style="color:red;font-weight:bold;">Este hilo es viejo y desaparecerá pronto.</div> <?py #endif ?> <?py #endif ?> - <?py if post['parentid'] == "0": ?> + <?py if not post['parentid']: ?> <?py if not replythread: ?> - <?py if int(thread['omitted']) == 1: ?> + <?py if thread['omitted'] == 1: ?> <div class="omitted">Un post omitido. Haz clic en Responder para ver.</div> - <?py elif int(thread['omitted']) > 1: ?> + <?py elif thread['omitted'] > 1: ?> <div class="omitted">#{thread['omitted']} posts omitidos. Haz clic en Responder para ver.</div> <?py #endif ?> <?py #endif ?> diff --git a/cgi/templates/board.jp.html b/cgi/templates/board.jp.html index f463dee..06a9391 100644 --- a/cgi/templates/board.jp.html +++ b/cgi/templates/board.jp.html @@ -238,9 +238,9 @@ <div style="color:red;font-weight:bold">このスレは古いので、もうすぐ消えます。</div> <?py #endif ?> <?py #endif ?> - <?py if int(post['parentid']) == 0: ?> + <?py if not post['parentid']: ?> <?py if not replythread: ?> - <?py if int(thread['omitted']) > 0: ?> + <?py if thread['omitted']: ?> <span class="omitted">レス${thread['omitted']}件省略。全て読むには返信ボタンを押してください。</span> <?py #endif ?> <?py #endif ?> @@ -266,4 +266,4 @@ <?py if pagenav: ?> <div class="pg">#{pagenav}</div> <?py #endif ?> -<?py include('templates/base_bottom.html') ?>
\ No newline at end of file +<?py include('templates/base_bottom.html') ?> diff --git a/cgi/templates/home.html b/cgi/templates/home.html index a9ca238..47ee5c7 100644 --- a/cgi/templates/home.html +++ b/cgi/templates/home.html @@ -29,10 +29,12 @@ <a href="/juegos/">Juegos</a> <a href="/musica/">Música</a> <a href="/letras/">Humanidades</a> + <a href="/drogas/">Psicotrópicos</a> </div> <div class="cat"> <h3>Conversación</h3> <a href="/zonavip/">Club VIP</a> + <a href="/consejos/">Consejos</a> <a href="/world/">World Lobby</a> </div> <div class="cat"> 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">▲</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 é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> diff --git a/cgi/templates/paint.html b/cgi/templates/paint.html index 945a8d2..4787674 100644 --- a/cgi/templates/paint.html +++ b/cgi/templates/paint.html @@ -13,8 +13,8 @@ <script type="text/javascript">palette_selfy();</script> <?py #endif ?> <?py elif applet == 'neo': ?> -<link rel="stylesheet" href="#{static_url}js/paintbbs/PaintBBS-1.3.4.css" type="text/css" /> -<script src="#{static_url}js/paintbbs/PaintBBS-1.3.4.js" charset="UTF-8"></script> +<link rel="stylesheet" href="#{static_url}js/paintbbs/PaintBBS-1.5.15.css" type="text/css" /> +<script src="#{static_url}js/paintbbs/PaintBBS-1.5.15.js" charset="UTF-8"></script> <applet-dummy id="oekaki" name="paintbbs" width="#{width+250}" height="#{height+280}"> <param name="image_width" value="#{width}"> <param name="image_height" value="#{height}"> @@ -27,8 +27,8 @@ <param name="color_bk2" value="#D5D8EF"> <param name="color_icon" value="#A1B8D8"> <param name="color_iconselect" value="#000000"> -<param name="url_save" value="#{cgi_url}oekaki/save/#{board}/paintbbs?rawpost"> -<param name="url_exit" value="#{cgi_url}oekaki/finish/#{board}/#{replythread}"> +<param name="url_save" value="save/#{board}/paintbbs?rawpost"> +<param name="url_exit" value="finish/#{board}/#{replythread}"> <param name="poo" value="false"> <param name="send_advance" value="true"> <param name="thumbnail_width" value="100%"> |