aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates
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
parent3693f572b119cf172be0f669313bdb8314cbbdc2 (diff)
downloadweabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.tar.gz
weabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.tar.xz
weabot-e34ea592bd9981d99d1c7f70c0fbf10c0bd83eb3.zip
Actualización inicial a Python 3
Diffstat (limited to 'cgi/templates')
-rw-r--r--cgi/templates/home.html5
-rw-r--r--cgi/templates/manage/boardoptions.html34
-rw-r--r--cgi/templates/manage/ipshow.html10
-rw-r--r--cgi/templates/revision.html2
-rw-r--r--cgi/templates/txt_board.html6
-rw-r--r--cgi/templates/txt_thread.html12
6 files changed, 34 insertions, 35 deletions
diff --git a/cgi/templates/home.html b/cgi/templates/home.html
index bc37431..04fbf72 100644
--- a/cgi/templates/home.html
+++ b/cgi/templates/home.html
@@ -8,9 +8,9 @@
<title>Bienvenido a Internet BBS/IB</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="/home.css?v=9998" />
- <link rel="stylesheet" type="text/css" href="/home_1.css?v=9999" title="main" />
+ <link rel="stylesheet" type="text/css" href="/home_moracrema.css?v=3" title="main" />
<link rel="alternate stylesheet" type="text/css" href="/home_2.css" title="alt" />
- <script type="text/javascript" src="#{static_url}js/home.js?v=9999"></script>
+ <script type="text/javascript" src="#{static_url}js/home.js?v=100"></script>
</head>
<body class="home">
<table id="all">
@@ -54,7 +54,6 @@
<div id="extra">
<a href="/bai.html" target="_top">Frame</a> ·
<a href="/movil.html">BaI Móvil</a> ·
- <a href="http://bai5vj7eniqkrau5.onion/" target="_top">Onion</a> ·
<a href="//tv.bienvenidoainternet.org/" target="_blank">BaI TV</a> ·
<a href="//radio.bienvenidoainternet.org/" target="_blank">BaI Radio</a> ·
<a href="/cgi/stats" target="_blank">Estadísticas</a>
diff --git a/cgi/templates/manage/boardoptions.html b/cgi/templates/manage/boardoptions.html
index 436b036..fcd3bb8 100644
--- a/cgi/templates/manage/boardoptions.html
+++ b/cgi/templates/manage/boardoptions.html
@@ -38,7 +38,7 @@
<td>
<select style="width:100%;" name="type">
<option value="0">Imageboard</option>
- <option value="1"#{selected(boardopts['board_type'] == '1')}>Textboard</option>
+ <option value="1"#{selected(boardopts['board_type'] == 1)}>Textboard</option>
</select>
</td>
</tr>
@@ -74,9 +74,9 @@
<td>
<select name="useid" style="width:100%;">
<option value="0">Desactivado</option>
- <option value="1"#{selected(boardopts['useid'] == '1')}>Activado</option>
- <option value="2"#{selected(boardopts['useid'] == '2')}>Activado siempre</option>
- <option value="3"#{selected(boardopts['useid'] == '3')}>Activado siempre, detallado</option>
+ <option value="1"#{selected(boardopts['useid'] == 1)}>Activado</option>
+ <option value="2"#{selected(boardopts['useid'] == 2)}>Activado siempre</option>
+ <option value="3"#{selected(boardopts['useid'] == 3)}>Activado siempre, detallado</option>
</select>
</td>
</tr>
@@ -85,9 +85,9 @@
<td>
<select name="slip" style="width:100%;">
<option value="0">Desactivado</option>
- <option value="1"#{selected(boardopts['slip'] == '1')}>Activado</option>
- <option value="2"#{selected(boardopts['slip'] == '2')}>Sólo dominio</option>
- <option value="3"#{selected(boardopts['slip'] == '3')}>Todo</option>
+ <option value="1"#{selected(boardopts['slip'] == 1)}>Activado</option>
+ <option value="2"#{selected(boardopts['slip'] == 2)}>Sólo dominio</option>
+ <option value="3"#{selected(boardopts['slip'] == 3)}>Todo</option>
</select>
</td>
</tr>
@@ -96,45 +96,45 @@
<td>
<select name="countrycode" style="width:100%;">
<option value="0">Desactivado</option>
- <option value="1"#{selected(boardopts['countrycode'] == '1')}>Activado</option>
+ <option value="1"#{selected(boardopts['countrycode'] == 1)}>Activado</option>
</select>
</td>
</tr>
<tr>
<td class="postblock">Desactivar nombre</td>
-<td><input type="checkbox" name="disable_name" id="noname" value="1"#{checked(boardopts['disable_name'] == '1')} /><label for="noname"></label></td>
+<td><input type="checkbox" name="disable_name" id="noname" value="1"#{checked(boardopts['disable_name'])} /><label for="noname"></label></td>
</tr>
<tr>
<td class="postblock">Desactivar asunto</td>
-<td><input type="checkbox" name="disable_subject" id="nosub" value="1"#{checked(boardopts['disable_subject'] == '1')} /><label for="nosub"></label></td>
+<td><input type="checkbox" name="disable_subject" id="nosub" value="1"#{checked(boardopts['disable_subject'])} /><label for="nosub"></label></td>
</tr>
<tr>
<td class="postblock">Papelera de reciclaje</td>
-<td><input type="checkbox" name="recyclebin" id="bin" value="1"#{checked(boardopts['recyclebin'] == '1')} /><label for="bin"></label></td>
+<td><input type="checkbox" name="recyclebin" id="bin" value="1"#{checked(boardopts['recyclebin'])} /><label for="bin"></label></td>
</tr>
<tr>
<td class="postblock">Cerrado</td>
-<td><input type="checkbox" name="locked" id="locked" value="1"#{checked(boardopts['locked'] == '1')} /><label for="locked"></label></td>
+<td><input type="checkbox" name="locked" id="locked" value="1"#{checked(boardopts['locked'])} /><label for="locked"></label></td>
</tr>
<tr>
<td class="postblock">Secreto</td>
-<td><input type="checkbox" name="secret" id="secret" value="1"#{checked(boardopts['secret'] == '1')} /><label for="secret"></label></td>
+<td><input type="checkbox" name="secret" id="secret" value="1"#{checked(boardopts['secret'])} /><label for="secret"></label></td>
</tr>
<tr>
<td class="postblock">Permitir spoilers</td>
-<td><input type="checkbox" name="allow_spoilers" id="spoil" value="1"#{checked(boardopts['allow_spoilers'] == '1')} /><label for="spoil"></label></td>
+<td><input type="checkbox" name="allow_spoilers" id="spoil" value="1"#{checked(boardopts['allow_spoilers'])} /><label for="spoil"></label></td>
</tr>
<tr>
<td class="postblock">Permitir oekaki</td>
-<td><input type="checkbox" name="allow_oekaki" id="oek" value="1"#{checked(boardopts['allow_oekaki'] == '1')} /><label for="oek"></label></td>
+<td><input type="checkbox" name="allow_oekaki" id="oek" value="1"#{checked(boardopts['allow_oekaki'])} /><label for="oek"></label></td>
</tr>
<tr>
<td class="postblock">Permitir crear hilos sin imagen</td>
-<td><input type="checkbox" name="allow_noimage" id="noimgallow" value="1"#{checked(boardopts['allow_noimage'] == '1')} /><label for="noimgallow"></label></td>
+<td><input type="checkbox" name="allow_noimage" id="noimgallow" value="1"#{checked(boardopts['allow_noimage'])} /><label for="noimgallow"></label></td>
</tr>
<tr>
<td class="postblock">Permitir subida</td>
-<td><input type="checkbox" name="allow_images" id="img" value="1"#{checked(boardopts['allow_images'] == '1')} /><label for="img">Al crear un hilo</label><br /><input type="checkbox" name="allow_image_replies" id="imgres" value="1"#{checked(boardopts['allow_image_replies'] == '1')} /><label for="imgres">Al responder</label></td>
+<td><input type="checkbox" name="allow_images" id="img" value="1"#{checked(boardopts['allow_images'])} /><label for="img">Al crear un hilo</label><br /><input type="checkbox" name="allow_image_replies" id="imgres" value="1"#{checked(boardopts['allow_image_replies'])} /><label for="imgres">Al responder</label></td>
</tr>
<tr>
<td class="postblock">Tipos de archivo</td>
diff --git a/cgi/templates/manage/ipshow.html b/cgi/templates/manage/ipshow.html
index 6937a0e..4e9de17 100644
--- a/cgi/templates/manage/ipshow.html
+++ b/cgi/templates/manage/ipshow.html
@@ -49,14 +49,14 @@
<td></td>
<?py #endif ?>
<td>
- <?py if post['IS_DELETED'] == '0': ?>
- <a href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}">Eliminar</a>
- <?py elif post['IS_DELETED'] == '1': ?>
- <a href="#{cgi_url}manage/recyclebin/0/restore/#{post['dir']}/#{post['id']}">Rec</a>
+ <?py if post['IS_DELETED'] == 1: ?>
+ <a href="#{cgi_url}manage/recyclebin/0/restore/#{post['dir']}/#{post['id']}">Rec</a>
<abbr title="Eliminado por usuario">[1]</abbr>
- <?py else: ?>
+ <?py elif post['IS_DELETED'] == 2: ?>
<a href="#{cgi_url}manage/recyclebin/0/restore/#{post['dir']}/#{post['id']}">Rec</a>
<abbr title="Eliminado por staff">[2]</abbr>
+ <?py else: ?>
+ <a href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}">Eliminar</a>
<?py #endif ?>
</td>
</tr>
diff --git a/cgi/templates/revision.html b/cgi/templates/revision.html
index ef50561..78bc1ab 100644
--- a/cgi/templates/revision.html
+++ b/cgi/templates/revision.html
@@ -1 +1 @@
-0.8.10
+0.10.0
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>
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">&#9650;Subir&#9650;</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>