aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/catalog.html
blob: 4faa2d2359269142684c063ac706d4bcaf1064d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?py include('templates/base_top.html') ?>
<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}" />
</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') ?>