aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/txt_thread.html
diff options
context:
space:
mode:
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 ?>