From 11fabc50d72e4eeea65cca25c93d292d87e541ce Mon Sep 17 00:00:00 2001 From: Terry Date: Fri, 29 Mar 2019 03:04:07 -0300 Subject: Paginación hilos BBS --- cgi/templates/txt_thread.en.html | 6 +++--- cgi/templates/txt_thread.html | 6 +++--- static/js/autorefresh.js | 4 ++-- 3 files changed, 8 insertions(+), 8 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 @@ Bienvenido a Internet ■Return to BBS■ Entire thread - 100: ?> - First 100 - + + #{(i+1)*100+1}- + 51: ?> Last 50 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 @@ Bienvenido a Internet ■Volver al BBS■ Hilo completo - 100: ?> - Primeros 100 - + + #{(i+1)*100+1}- + 51: ?> Últimos 50 diff --git a/static/js/autorefresh.js b/static/js/autorefresh.js index aa04bf1..9aa6e0e 100644 --- a/static/js/autorefresh.js +++ b/static/js/autorefresh.js @@ -58,7 +58,7 @@ function updateThread(posts, total_replies, serverTime) { if (post.IS_DELETED == 1) div.innerHTML = '

' + num + ' : Mensaje eliminado por el usuario.

'; else if (post.IS_DELETED == 2) div.innerHTML = '

' + num + ' : Mensaje eliminado por miembro del staff.

'; else - div.innerHTML = '

' + num + ' : ' + s_name + ' : ' + post.timestamp_formatted + ' rep del

' + s_img + '
' + post.message + '
'; + div.innerHTML = '

' + num + ' : ' + s_name + ' : ' + post.timestamp_formatted + ' rep del

' + s_img + '
' + post.message + '
'; } else { if (post.file) { if (post.image_width != 0) { @@ -73,7 +73,7 @@ function updateThread(posts, total_replies, serverTime) { s_msg = '
' + post.message + '
'; } if (post.IS_DELETED == 0) { - div.innerHTML = '
' + (post.subject ? (' ' + post.subject + '') : '') + ' ' + s_name + ' ' + '' + post.timestamp_formatted + ' No.' + post.id + ' rep
' + s_img + s_msg + '
'; + div.innerHTML = '
' + (post.subject ? (' ' + post.subject + '') : '') + ' ' + s_name + ' ' + '' + post.timestamp_formatted + ' No.' + post.id + ' rep
' + s_img + s_msg + '
'; } } -- cgit v1.2.1-18-gbd029