diff options
Diffstat (limited to 'cgi/templates/catalog.html')
-rw-r--r-- | cgi/templates/catalog.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cgi/templates/catalog.html b/cgi/templates/catalog.html new file mode 100644 index 0000000..4faa2d2 --- /dev/null +++ b/cgi/templates/catalog.html @@ -0,0 +1,30 @@ +<?py include('templates/base_top.html') ?> +<div id="ctrl"> + [<a href="#{boards_url}#{board}/">Volver al IB</a>] + [Orden: + <a class="cat_sort" data-sort="0" href="?sort=0">#{"<b>Normal</b>" if i_sort == "" else "Normal"}</a> + <a class="cat_sort" data-sort="1" href="?sort=1">#{"<b>Nuevo</b>" if i_sort == "1" else "Nuevo"}</a> + <a class="cat_sort" data-sort="2" href="?sort=2">#{"<b>Viejo</b>" if i_sort == "2" else "Viejo"}</a> + <a class="cat_sort" data-sort="3" href="?sort=3">#{"<b>Más</b>" if i_sort == "3" else "Más"}</a> + <a class="cat_sort" data-sort="4" href="?sort=4">#{"<b>Menos</b>" if i_sort == "4" else "Menos"}</a>] + [Tamaño: <a id="cat_size" href="#">Pequeño</a>] + [Texto: <a id="cat_hide" href="#">Ocultar</a>] + [Buscar: <input id="cat_search" type="text"><input type="hidden" name="board" value="#{board}" /> +</div> +<div class="extramode">Modo Catálogo</div> +<div id="catalog" style="margin:1em auto;"> + <?py i = 1 ?> + <?py for thread in threads: ?><div id="cat#{thread['id']}#{board}" class="thread" data-num="${i}" data-id="#{thread['id']}" data-res="${thread['length']}"> + <?py if thread['thumb'] != '': ?> + <a href="#{boards_url}#{board}/res/#{thread['id']}.html" rel="nofollow"><img src="#{images_url}#{board}/cat/#{thread['thumb']}" alt="#{thread['id']}" /></a><br /> + <?py #endif ?> + <div class="replies">Respuestas: ${thread['length']}</div> + <?py if thread['thumb'] != '': ?> + <p><span class="subj">${thread['subject']}</span><br />${thread['message']}</p> + <?py else: ?> + <p><a href="#{boards_url}#{board}/res/#{thread['id']}.html" rel="nofollow" class="subj">${thread['subject']}</a><br />${thread['message']}</p> + <?py #endif ?> + <?py i += 1 ?> + </div><?py #endfor ?> +</div> +<?py include('templates/base_bottom.html') ?>
\ No newline at end of file |