aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/txt_thread.en.html
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/templates/txt_thread.en.html')
-rw-r--r--cgi/templates/txt_thread.en.html6
1 files changed, 3 insertions, 3 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 ?>