From 7d31509782c87713e30cc7a400b9b9ee6f7eb0ff Mon Sep 17 00:00:00 2001 From: Choom Date: Sun, 11 Dec 2022 01:49:21 -0300 Subject: Agregando div a respuestas Agregando div a respuestas Agregando div a respuestas Agregando div a respuestas Agregando div a respuestas Agregando div a respuestas --- cgi/template.py | 2 +- cgi/templates/txt_board.en.html | 81 ++++++++++++++++++----------- cgi/templates/txt_board.html | 48 ++++++++++++----- cgi/templates/txt_thread.en.html | 108 --------------------------------------- cgi/templates/txt_thread.html | 6 ++- 5 files changed, 93 insertions(+), 152 deletions(-) delete mode 100644 cgi/templates/txt_thread.en.html diff --git a/cgi/template.py b/cgi/template.py index 8c3fc19..62f62a9 100644 --- a/cgi/template.py +++ b/cgi/template.py @@ -46,7 +46,7 @@ def renderTemplate(template, template_values={}, mobile=False, noindex=False): # if board: if template in ["board.html", "threadlist.html", "catalog.html", "kako.html", "paint.html"] or template[0:3] == "txt": # TODO HACK - if board['dir'] == 'world' and not mobile and (template == 'txt_board.html' or template == 'txt_thread.html'): + if board['dir'] == 'world' and not mobile and (template == 'txt_board.html'): template = template[:-4] + 'en.html' elif board['dir'] == '2d' and template == 'board.html' and not mobile: template = template[:-4] + 'jp.html' diff --git a/cgi/templates/txt_board.en.html b/cgi/templates/txt_board.en.html index 8c94361..7f280b4 100644 --- a/cgi/templates/txt_board.en.html +++ b/cgi/templates/txt_board.en.html @@ -6,17 +6,18 @@
- +

#{board_long}

#{postarea_desc}
- + +
#{postarea_extra}
@@ -24,7 +25,7 @@
- +
@@ -40,14 +41,16 @@ -
+
+
-

[#{titer}:#{thread['length']}]#{thread['posts'][0]['subject']}

+

[#{titer}:#{thread['length']}]#{thread['posts'][0]['subject']}

+
- -

#{post['num']} : Post deleted by user.

- -

#{post['num']} : Post deleted by staff.

+ +

#{post['num']} : Mensaje eliminado por usuario.

+ +

#{post['num']} : Mensaje eliminado por staff.

#{post['num']} : @@ -65,27 +68,30 @@ : #{post['timestamp_formatted']}

- + + +
#{post['message']} -
(Post is too long... Click here to view the whole post.)
+
(Post is too long... Click here to view.)
- +
+
-
- Name:  E-mail: 
+
+ Name: E-mail:

-
This thread has been closed. You cannot post in it any longer.
+
Thread has been closed. You cannot reply anymore.
-
-
+
+ +
+
@@ -115,23 +123,38 @@ Subject: - + + + + Name: + + E-mail: + + + + + +
- Name: - E-mail: - + Body: + -
- Body: - File: + + File: + + -
Trampa:
+
Trampa:
- + - \ No newline at end of file + diff --git a/cgi/templates/txt_board.html b/cgi/templates/txt_board.html index 375613a..3cebba3 100644 --- a/cgi/templates/txt_board.html +++ b/cgi/templates/txt_board.html @@ -41,9 +41,11 @@ -
+
+

[#{titer}:#{thread['length']}]#{thread['posts'][0]['subject']}

+

#{post['num']} : Mensaje eliminado por usuario.

@@ -66,7 +68,9 @@ : #{post['timestamp_formatted']} - + + +
#{post['message']} @@ -77,10 +81,11 @@
+
-
+
Nombre: E-mail:
@@ -99,8 +104,10 @@ Lista de hilos Nuevo hilo
-
-
+
+ +
+
@@ -119,20 +126,35 @@ - Nombre: - E-mail: + Nombre: + + E-mail: + -
- Mensaje: + + +
+ + + Mensaje: + + - Archivo: + + Archivo: + + -
Trampa:
+
Trampa:
- + - \ No newline at end of file + diff --git a/cgi/templates/txt_thread.en.html b/cgi/templates/txt_thread.en.html deleted file mode 100644 index c8348a1..0000000 --- a/cgi/templates/txt_thread.en.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - -
- Bienvenido a Internet - ■Return to BBS■ - Entire thread - 100: ?> - First 100 - - - #{(i+1)*100+1}- - - 51: ?> - Last 50 - - ▼Bottom▼ -
-
- 1000: ?> -
The thread got over 1000 posts and has been closed.
- 950: ?> -
The thread has reached 950 posts. When it reaches 1000 posts it will be closed.
- 900: ?> -
The thread has reached 900 posts. When it reaches 1000 posts it will be closed.
- -
-

#{thread['subject']} (${(str(thread['length'])+" replies") if thread['length']>1 else "1 reply"})

- - -

#{post['num']} : Post deleted by user.

- -

#{post['num']} : Post deleted by staff.

- -
-

#{post['num']} : - - - #{post['name']} #{post['tripcode']} - - #{post['name']} - - - - #{post['name']} #{post['tripcode']} - - #{post['name']} - - : #{post['timestamp_formatted']} - rep del

- - - -
- #{post['message']} -
-
- - -
#{thread['size']}
-
-
- -
Show new posts
-
- - 1000: ?> -
The thread got over 1000 posts and has been closed.
- 950: ?> -
The thread has reached 950 posts. When it reaches 1000 posts it will be closed.
- 900: ?> -
The thread has reached 900 posts. When it reaches 1000 posts it will be closed.
- -
- - - -
- Name:  E-mail: 
-
- - - - - -
This thread has been closed. You cannot post in it any longer.
- -
- - -
weabot.py ver Bienvenido a Internet BBS/IB
- - - diff --git a/cgi/templates/txt_thread.html b/cgi/templates/txt_thread.html index d2d3224..907d660 100644 --- a/cgi/templates/txt_thread.html +++ b/cgi/templates/txt_thread.html @@ -27,6 +27,7 @@

#{thread['subject']} (${(str(thread['length'])+" respuestas") if thread['length']>1 else "Una respuesta"})

+

#{post['num']} : Mensaje eliminado por usuario.

@@ -56,6 +57,7 @@
+
#{thread['size']}

@@ -65,6 +67,8 @@ 1000: ?>
El hilo superó los 1000 mensajes y ha sido cerrado. Ya no se puede postear en él.
+ 950: ?> +
El hilo ha recibido más de 950 mensajes. Cuando llegue a 1000 será cerrado.
900: ?>
El hilo ha recibido más de 900 mensajes. Cuando llegue a 1000 será cerrado.
@@ -85,7 +89,7 @@ -
+
Nombre: E-mail:

-- cgit v1.2.1-18-gbd029