aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/catalog.html
diff options
context:
space:
mode:
authorLibravatar junk 2021-03-28 07:51:40 -0300
committerLibravatar junk 2021-03-31 05:27:26 -0300
commitf7baf0c69606d49c6be86d3f27bc88d9d58cd4ba (patch)
treef0d72c1a497f73863078f1970e3ba692ffec860d /cgi/templates/catalog.html
parentaa8a6056f4c3cd8c6663d1714782f972bcb87b8f (diff)
downloadweabot-f7baf0c69606d49c6be86d3f27bc88d9d58cd4ba.tar.gz
weabot-f7baf0c69606d49c6be86d3f27bc88d9d58cd4ba.tar.xz
weabot-f7baf0c69606d49c6be86d3f27bc88d9d58cd4ba.zip
Mejor forma de ocultar posts
Diffstat (limited to 'cgi/templates/catalog.html')
-rw-r--r--cgi/templates/catalog.html30
1 files changed, 16 insertions, 14 deletions
diff --git a/cgi/templates/catalog.html b/cgi/templates/catalog.html
index 4faa2d2..8c0d80e 100644
--- a/cgi/templates/catalog.html
+++ b/cgi/templates/catalog.html
@@ -2,29 +2,31 @@
<div id="ctrl">
&#91;<a href="#{boards_url}#{board}/">Volver al IB</a>&#93;
&#91;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>&#93;
- &#91;Tamaño: <a id="cat_size" href="#">Pequeño</a>&#93;
- &#91;Texto: <a id="cat_hide" href="#">Ocultar</a>&#93;
- &#91;Buscar: <input id="cat_search" type="text"><input type="hidden" name="board" value="#{board}" />
+ <a href="?sort=0">#{"<b>Normal</b>" if i_sort == "" else "Normal"}</a>
+ <a href="?sort=1">#{"<b>Nuevo</b>" if i_sort == "1" else "Nuevo"}</a>
+ <a href="?sort=2">#{"<b>Viejo</b>" if i_sort == "2" else "Viejo"}</a>
+ <a href="?sort=3">#{"<b>Más</b>" if i_sort == "3" else "Más"}</a>
+ <a href="?sort=4">#{"<b>Menos</b>" if i_sort == "4" else "Menos"}</a>&#93;
+ &#91;Tamaño: <a id="cat-size" href="#">Pequeño</a>&#93;
+ &#91;Texto: <a id="cat-hide" href="#">Ocultar</a>&#93;
+ &#91;Filtrar: <input id="cat-srch" type="text">
+ <span id="hid-label" style="display:none;">[Hilos ocultos: <a id="hid-num" href="#"></a>]</span>
</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 for thread in threads: ?>
+ <div id="t#{thread['id']}" class="thread">
<?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 />
+ <a href="#{boards_url}#{board}/res/#{thread['id']}.html" rel="nofollow"><img src="#{images_url}#{board}/cat/#{thread['thumb']}" alt="#{thread['id']}" /></a>
<?py #endif ?>
- <div class="replies">Respuestas: ${thread['length']}</div>
<?py if thread['thumb'] != '': ?>
- <p><span class="subj">${thread['subject']}</span><br />${thread['message']}</p>
+ <p><strong class="subj">${thread['subject']} <span>(${thread['length']})</span></strong><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>
+ <p><a href="#{boards_url}#{board}/res/#{thread['id']}.html" rel="nofollow"><strong class="subj">${thread['subject']} <span>(${thread['length']})</span></strong></a><br />${thread['message']}</p>
<?py #endif ?>
<?py i += 1 ?>
- </div><?py #endfor ?>
+ </div>
+ <?py #endfor ?>
</div>
<?py include('templates/base_bottom.html') ?> \ No newline at end of file