aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates
diff options
context:
space:
mode:
authorLibravatar Choom 2022-12-15 04:33:13 -0300
committerLibravatar Choom 2022-12-17 03:24:45 -0300
commit2767ab7add47272192d78ac92592e4d3d18878a3 (patch)
tree73ce3ff57d4153654c513634da5d52d5482deac4 /cgi/templates
parent7a4f14b0992621bf6df944d086d65a6b4476f33d (diff)
downloadweabot-2767ab7add47272192d78ac92592e4d3d18878a3.tar.gz
weabot-2767ab7add47272192d78ac92592e4d3d18878a3.tar.xz
weabot-2767ab7add47272192d78ac92592e4d3d18878a3.zip
Fix manage
Fix manage
Diffstat (limited to 'cgi/templates')
-rw-r--r--cgi/templates/error.html20
-rw-r--r--cgi/templates/manage/ipdelete.html28
-rw-r--r--cgi/templates/manage/lockboard.html14
3 files changed, 47 insertions, 15 deletions
diff --git a/cgi/templates/error.html b/cgi/templates/error.html
index 47ef529..4e254b0 100644
--- a/cgi/templates/error.html
+++ b/cgi/templates/error.html
@@ -1,7 +1,17 @@
<?py include('templates/base_top.html') ?>
-<br /><br /><hr size="1">
-<br /><br /><div style="text-align:center;color:red;font-size:x-large;font-weight:bold;">#{error}
-<br /><br /><a href="#{boards_url}#{board}/">Volver</a></div>
-<br /><br /><hr size="1">
+<br />
+<br />
+<hr size="1">
+<br />
+<br />
+<div style="text-align:center;color:red;font-size:x-large;font-weight:bold;">
+ #{error}
+ <br />
+ <br />
+ <a href="#{boards_url}#{board}/">Volver</a>
+</div>
+<br />
+<br />
+<hr size="1">
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/cgi/templates/manage/ipdelete.html b/cgi/templates/manage/ipdelete.html
index 71c043a..cd7591a 100644
--- a/cgi/templates/manage/ipdelete.html
+++ b/cgi/templates/manage/ipdelete.html
@@ -9,7 +9,8 @@
<td>
<input type="checkbox" name="board_all" id="all" value="1" /><label for="all" style="font-weight:bold">Todos los boards</label><hr />
<?py for board in boards: ?>
- <input type="checkbox" name="board_#{board['dir']}" id="#{board['dir']}" value="1" /><label for="#{board['dir']}">#{board['name']} <span style="opacity:0.5">(/#{board['dir']}/)</span></label><br />
+ <input type="checkbox" name="board_#{board['dir']}" id="#{board['dir']}" value="1" /><label for="#{board['dir']}">#{board['name']} <span style="opacity:0.5;">(/#{board['dir']}/)</span></label>
+ <br />
<?py #endfor ?>
</td>
</tr>
@@ -17,8 +18,29 @@
<td class="postblock">Dirección IP</td>
<td><input type="text" name="ip" style="width:100%;" /></td>
</tr>
- <tr><td colspan="2"><input type="submit" style="width:100%;" value="Eliminar posts" /></td></tr>
+ <tr>
+ <td class="postblock">Desde hace<br /><span style="font-weight:normal;">(segundos)</span></td>
+ <td>
+ <input type="text" id="seconds" name="seconds" value="0" style="width:100%;" />
+ <br />
+ <div id="timelist">
+ <a href="#" data-secs="0">Siempre</a>
+ <a href="#" data-secs="3600">1h</a>
+ <a href="#" data-secs="21600">6h</a>
+ <a href="#" data-secs="43200">12h</a>
+ <a href="#" data-secs="86400">1d</a>
+ <a href="#" data-secs="259200">3d</a>
+ <a href="#" data-secs="604800">1w</a>
+ <a href="#" data-secs="2592000">30d</a>
+ <a href="#" data-secs="31536000">1y</a>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><input type="submit" style="width:100%;" value="Eliminar posts" /></td>
+ </tr>
</table>
</form>
-</center><hr />
+</center>
+<hr />
<?py include('templates/base_bottom.html') ?>
diff --git a/cgi/templates/manage/lockboard.html b/cgi/templates/manage/lockboard.html
index cebf061..49559f6 100644
--- a/cgi/templates/manage/lockboard.html
+++ b/cgi/templates/manage/lockboard.html
@@ -3,15 +3,15 @@
<center>
<div class="replymode">Cerrar o abrir board</div>
<table class="managertable">
- <tr><th colspan="2">Sección</th><th>Acción</th></tr>
+ <tr>
+ <th colspan="2">Sección</th>
+ <th>Acción</th>
+ </tr>
<?py for board in boards: ?>
<tr>
- <td>/#{board['dir']}/</td><td>#{board['name']}</td>
- <?py if board['locked'] == '0': ?>
- <td style="text-align:center;">[<a href="#{cgi_url}manage/boardlock/#{board['dir']}">Cerrar</a>]</td>
- <?py elif board['locked'] == '1': ?>
- <td style="text-align:center;">[<a href="#{cgi_url}manage/boardlock/#{board['dir']}">Abrir</a>]</td>
- <?py #endif ?>
+ <td>#{board['dir']}</td>
+ <td>#{board['name']}</td>
+ <td style="text-align:center;">[<a href="#{cgi_url}manage/boardlock/#{board['dir']}">#{'Abrir' if board['locked'] else 'Cerrar'}</a>]</td>
</tr>
<?py #endfor ?>
</table>