aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/templates/txt_thread.en.html6
-rw-r--r--cgi/templates/txt_thread.html6
2 files changed, 6 insertions, 6 deletions
diff --git a/cgi/templates/txt_thread.en.html b/cgi/templates/txt_thread.en.html
index 2e811cb..f7a6519 100644
--- a/cgi/templates/txt_thread.en.html
+++ b/cgi/templates/txt_thread.en.html
@@ -6,9 +6,9 @@
<a href="/" name="top" target="_top">Bienvenido a Internet</a>
<a href="#{boards_url}#{board}/">■Return to BBS■</a>
<a href="#{boards_url}#{board}/read/#{thread['timestamp']}/">Entire thread</a>
- <?py if thread['length'] > 100: ?>
- <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/-100">First 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">Last 50</a>
<?py #endif ?>
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 ?>