diff options
Diffstat (limited to 'cgi/templates/mobile/threadlist.html')
-rw-r--r-- | cgi/templates/mobile/threadlist.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/cgi/templates/mobile/threadlist.html b/cgi/templates/mobile/threadlist.html new file mode 100644 index 0000000..edb81eb --- /dev/null +++ b/cgi/templates/mobile/threadlist.html @@ -0,0 +1,43 @@ +<?py include('templates/mobile/base_top.html') ?> +<body class="img"> +<div class="top"> + <a href="//m.bienvenidoainternet.org"><img src="#{static_url}css/img/0back.png" /><br />Home</a> + #{board_name} +</div> +<?py if mode == 1: ?> + <div class="bar"><a href="#{cgi_url}mobile/#{board}" class="sel">Portada</a><a href="#{cgi_url}mobilelist/#{board}">Lista</a><a href="#{cgi_url}mobilecat/#{board}">Catálogo</a><a href="#{cgi_url}mobilenew/#{board}">Nuevo hilo</a></div> + <?py for thread in more_threads: ?> + <div class="prev"> + <a href="#{cgi_url}mobileread/#{board}/#{thread['id']}"><img class="thm" src="/#{board}/mobile/#{thread['thumb']}" /> + <b>#{thread["subject"]}</b> (R:#{int(thread["length"])-1})</a> + <h3>#{thread['name']} #{thread['tripcode']} #{thread['timestamp_formatted']}</h3> + #{thread['message']}#{" [...]" if thread['shortened'] else ""} + <?py if thread['lastreply']: ?> + <div class="pst"><h3>#{thread['lastreply']['name']} #{thread['lastreply']['tripcode']} #{thread['lastreply']['timestamp_formatted']}</h3> + #{thread['lastreply']['message']}#{" [...]" if thread['lastreply']['shortened'] else ""}</div> + <?py #endif ?> + </div> + <?py #endfor ?> +<?py elif mode == 2: ?> + <div class="bar"><a href="#{cgi_url}mobile/#{board}">Portada</a><a href="#{cgi_url}mobilelist/#{board}" class="sel">Lista</a><a href="#{cgi_url}mobilecat/#{board}">Catálogo</a><a href="#{cgi_url}mobilenew/#{board}">Nuevo hilo</a></div> + <div class="search"><input id="search" placeholder="Buscar en asuntos" style="padding:7px;" type="text"></div> + <div class="ord"><span>Orden:</span><a data-sort="0" class="sel" href="#">Normal</a><a data-sort="1" href="#">Nuevo</a><a data-sort="2" href="#">Viejo</a><a data-sort="3" href="#">Más</a><a data-sort="4" href="#">Menos</a></div> + <div id="to_sort" class="list"> + <?py i = 1 ?> + <?py for thread in more_threads: ?> + <a data-num="${i}" data-res="#{thread['length']}" data-id="#{thread['id']}" href="#{cgi_url}mobileread/#{board}/#{thread['id']}"><strong>#{thread["subject"]}</strong>: #{thread['message']}#{" [...]" if thread['shortened'] else ""}<br /> + <span class="info"><span>Última: #{thread['lastreply']['timestamp_formatted'] if thread['lastreply'] else thread['timestamp_formatted']}</span> Respuestas: <b>#{int(thread["length"])-1}</b></span></a> + <?py i += 1 ?> + <?py #endfor ?> + </div> +<?py else: ?> + <div class="bar"><a href="#{cgi_url}mobile/#{board}">Portada</a><a href="#{cgi_url}mobilelist/#{board}">Lista</a><a href="#{cgi_url}mobilecat/#{board}" class="sel">Catálogo</a><a href="#{cgi_url}mobilenew/#{board}">Nuevo hilo</a></div> + <div class="search"><input id="catsearch" placeholder="Buscar en catálogo" style="padding:7px;" type="text"></div> + <div class="ord"><span>Orden:</span><a data-sort="0" class="sel" href="#">Normal</a><a data-sort="1" href="#">Nuevo</a><a data-sort="2" href="#">Viejo</a><a data-sort="3" href="#">Más</a><a data-sort="4" href="#">Menos</a></div> + <div id="to_sort" style="text-align:center;margin-top:0.5em;"> + <?py i = 1 ?> + <?py for thread in more_threads: ?><a data-num="${i}" data-res="#{thread['length']}" data-id="#{thread['id']}" class="cat" href="#{cgi_url}mobileread/#{board}/#{thread['id']}"><img src="/#{board}/mobile/#{thread['thumb']}" /><br />(#{int(thread["length"])-1}R) <strong>#{thread["subject"]}</strong>: #{thread['message']}#{" [...]" if thread['shortened'] else ""}</a><?py i += 1 ?><?py #endfor ?> + </div> +<?py #endif ?> +</body> +</html>
\ No newline at end of file |