diff options
author | junk | 2021-03-27 22:02:38 -0300 |
---|---|---|
committer | junk | 2021-03-28 05:37:20 -0300 |
commit | aa8a6056f4c3cd8c6663d1714782f972bcb87b8f (patch) | |
tree | 55b2fd7647cecd08996034ea6f335fef7ec6f9ed /cgi | |
parent | 9b039e42df4eefb7971a2cfa19bce260ab4ef08f (diff) | |
download | weabot-aa8a6056f4c3cd8c6663d1714782f972bcb87b8f.tar.gz weabot-aa8a6056f4c3cd8c6663d1714782f972bcb87b8f.tar.xz weabot-aa8a6056f4c3cd8c6663d1714782f972bcb87b8f.zip |
Arreglando lista de hilos
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/templates/txt_board.en.html | 2 | ||||
-rw-r--r-- | cgi/templates/txt_board.html | 6 | ||||
-rw-r--r-- | cgi/templates/txt_thread.en.html | 2 | ||||
-rw-r--r-- | cgi/templates/txt_thread.html | 2 | ||||
-rw-r--r-- | cgi/templates/txt_threadlist.html | 38 |
5 files changed, 27 insertions, 23 deletions
diff --git a/cgi/templates/txt_board.en.html b/cgi/templates/txt_board.en.html index a5a70dd..1f7de9c 100644 --- a/cgi/templates/txt_board.en.html +++ b/cgi/templates/txt_board.en.html @@ -65,7 +65,7 @@ <?py #endif ?> <?py #endif ?> : <span class="date" data-unix="#{post['timestamp']}">#{post['timestamp_formatted']}</span></h4> <?py if post['file']: ?> - <a href="#{images_url}#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{images_url}#{board}/thumb/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /><div>${int(post['file_size'])//1024}KB ${post['file'].split(".")[1].upper()}</div></a> + <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" title="${post['file']}-(${post['file_size']} B)" /></a> <?py #endif ?> <div class="msg"> #{post['message']} diff --git a/cgi/templates/txt_board.html b/cgi/templates/txt_board.html index f819f05..a165ac1 100644 --- a/cgi/templates/txt_board.html +++ b/cgi/templates/txt_board.html @@ -46,9 +46,9 @@ <h2><span>[#{titer}:#{thread['length']}]</span><a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{'l50' if thread['length'] > 50 else ''}">#{thread['posts'][0]['subject']}</a></h2> <?py for post in thread['posts']: ?> <?py if post['IS_DELETED'] == '1': ?> - <h4 class="deleted">#{post['num']} Mensaje eliminado por usuario.</h4> + <h4 class="deleted">#{post['num']} : Mensaje eliminado por usuario.</h4> <?py elif post['IS_DELETED'] == '2': ?> - <h4 class="deleted">#{post['num']} Mensaje eliminado por staff.</h4> + <h4 class="deleted">#{post['num']} : Mensaje eliminado por staff.</h4> <?py else: ?> <div class="reply#{' first' if post['num'] == 1 else ''}" data-id="#{post['id']}" data-n="#{post['num']}"> <h4>#{post['num']} : @@ -66,7 +66,7 @@ <?py #endif ?> <?py #endif ?> : <span class="date" data-unix="#{post['timestamp']}">#{post['timestamp_formatted']}</span></h4> <?py if post['file']: ?> - <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" alt="${post['file']}-(${post['file_size']}B)" /></a> + <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" title="${post['file']}-(${post['file_size']} B)" /></a> <?py #endif ?> <div class="msg"> #{post['message']} diff --git a/cgi/templates/txt_thread.en.html b/cgi/templates/txt_thread.en.html index b9215f7..84c3fc1 100644 --- a/cgi/templates/txt_thread.en.html +++ b/cgi/templates/txt_thread.en.html @@ -52,7 +52,7 @@ <?py #endif ?> : <span class="date" data-unix="#{post['timestamp']}">#{post['timestamp_formatted']}</span> <span class="del"><a href="#{cgi_url}report/#{board}/#{post['id']}/#{post['num']}">rep</a> <a href="#">del</a></span></h4> <?py if post['file']: ?> - <a href="#{images_url}#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{images_url}#{board}/thumb/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" /><div>${int(post['file_size'])//1024}KB ${post['file'].split(".")[1].upper()}</div></a> + <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" title="${post['file']}-(${post['file_size']} B)" /></a> <?py #endif ?> <div class="msg"> #{post['message']} diff --git a/cgi/templates/txt_thread.html b/cgi/templates/txt_thread.html index 55f5e82..1d70f59 100644 --- a/cgi/templates/txt_thread.html +++ b/cgi/templates/txt_thread.html @@ -52,7 +52,7 @@ <?py #endif ?> : <span class="date" data-unix="#{post['timestamp']}">#{post['timestamp_formatted']}</span> <span class="del"><a href="#{cgi_url}report/#{board}/#{post['id']}/#{post['num']}">rep</a> <a href="#">del</a></span></h4> <?py if post['file']: ?> - <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" alt="${post['file']}-(${post['file_size']}B)" /></a> + <a href="/#{board}/src/#{post['file']}" target="_blank" class="thumb"><img src="#{'/static/' if post['thumb'].startswith('mime') else ('/'+board+'/thumb/')}#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" title="${post['file']}-(${post['file_size']} B)" /></a> <?py #endif ?> <div class="msg">#{post['message']}</div> </div> diff --git a/cgi/templates/txt_threadlist.html b/cgi/templates/txt_threadlist.html index 74df30e..9d366ee 100644 --- a/cgi/templates/txt_threadlist.html +++ b/cgi/templates/txt_threadlist.html @@ -25,25 +25,29 @@ <a name="menu"></a> <div id="threadbox" class="outerbox"><div class="innerbox"> <div id="threadlinks"><a href="#{boards_url}#{board}/"><b>Volver al BBS</b></a> <a href="/#{board}/kako/"><b>Ver hilos archivados</b></a> <a href="#newthread"><b>Crear nuevo hilo</b></a></div> - <div id="listmenu">Orden: <a class="l_s" href="#">Normal</a> <a class="l_s" href="#">Edad</a> <a class="l_s" href="#">Largo</a> <a class="l_s" href="#">Rapidez</a> <a class="l_s" href="#">Aleatorio</a> / Modo: <a class="l_d" href="#">Lista</a> <a class="l_d" href="#">Malla</a> / Filtrar: <input id="l_sr" style="padding:0px;width:100px;" type="text"></div> + <div id="listmenu">Orden: <a class="l_s" href="#">Normal</a> <a class="l_s" href="#">Edad</a> <a class="l_s" href="#">Largo</a> <a class="l_s" href="#">Rapidez</a> <a class="l_s" href="#">Aleatorio</a> / Filtrar: <input id="l_sr" style="padding:0px;width:100px;" type="text"></div> </div></div> -<div id="content" class="list"> -<div id="header" class="row"> - <div>#</div> - <div style="width:100%;">Asunto</div> - <div>Posts</div> - <div class="hdate">Último</div> +<div class="thread"> +<div class="innerbox"> +<table id="threads" summary="Lista de hilos"> + <tr> + <th>#</th> + <th style="width:100%;">Asunto</th> + <th>Posts</th> + <th class="hh">Último</th> + </tr> + <?py iter = 1 ?> + <?py for thread in more_threads: ?> + <tr> + <td>#{iter}:</td> + <td><a href="#{boards_url}#{board}/read/#{thread['timestamp']}/${'l50' if int(thread['length']) > 50 else ''}">#{thread["subject"]}</a></td> + <td>#{thread["length"]}</td> + <td class="hh">#{timestamps[iter-1][1]}</td> + </tr> + <?py iter += 1 ?> + <?py #endfor ?> +</table> </div> -<?py iter = 1 ?> -<?py for thread in more_threads: ?> -<div class="row"> - <div class="pos">#{iter}:</div> - <div class="thread"><a href="#{boards_url}#{board}/read/#{thread['timestamp']}/${'l50' if int(thread['length']) > 50 else ''}">#{thread["subject"]}</a></div> - <div class="com">#{thread["length"]}</div> - <div class="date" data-unix="#{timestamps[iter-1][0]}">#{timestamps[iter-1][1]}</div> -</div> -<?py iter += 1 ?> -<?py #endfor ?> </div> <a name="newthread"></a> <div id="createbox" class="outerbox"> |