aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/txt_thread.html
diff options
context:
space:
mode:
authorLibravatar Terry 2019-03-29 03:04:07 -0300
committerLibravatar Terry 2019-03-29 03:04:07 -0300
commit11fabc50d72e4eeea65cca25c93d292d87e541ce (patch)
tree6b9224b17ea393aad59b190c2cd9003ec60e04d5 /cgi/templates/txt_thread.html
parente1c761b546e14eb3c8200a31f9e4758e47c3c45b (diff)
downloadweabot-11fabc50d72e4eeea65cca25c93d292d87e541ce.tar.gz
weabot-11fabc50d72e4eeea65cca25c93d292d87e541ce.tar.xz
weabot-11fabc50d72e4eeea65cca25c93d292d87e541ce.zip
Paginación hilos BBS
Diffstat (limited to 'cgi/templates/txt_thread.html')
-rw-r--r--cgi/templates/txt_thread.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi/templates/txt_thread.html b/cgi/templates/txt_thread.html
index b01a126..6765630 100644
--- a/cgi/templates/txt_thread.html
+++ b/cgi/templates/txt_thread.html
@@ -6,9 +6,9 @@
<a href="/" name="top" target="_top">Bienvenido a Internet</a>
<a href="#{boards_url}#{board}/">■Volver al BBS■</a>
<a href="#{boards_url}#{board}/read/#{thread['timestamp']}/">Hilo completo</a>
- <?py if thread['length'] > 100: ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/-100">Primeros 100</a>
- <?py #endif ?>
+ <?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: ?>
<a href="#{boards_url}#{board}/read/#{thread['timestamp']}/l50">Últimos 50</a>
<?py #endif ?>