gdritter repos frony-ritter-designs / master old_templates / design_list.html
master

Tree @master (Download .tar.gz)

design_list.html @masterraw · history · blame

$def with(seq, page=None, last_page=None, show_left=False, show_right=False)
<ul class="all-designs">
  $for design in seq:
      $:design
  <li class="break"></li>
</ul>
$if page is not None:
  <div class="lrnav"><ul>
  <a href="/design/?page=0"><li class="navitem">Newest</li></a>
  $if show_left:
      <a href="/design/?page=$(page - 1)"><li class="navitem">Newer</li></a>
  $else:
      <li class="navitem greyed">Newer</li>
  $if show_right:
      <a href="/design/?page=$(page + 1)"><li class="navitem">Older</li></a>
  $else:
      <li class="navitem greyed">Older</li>
  <a href="/design/?page=$last_page"><li class="navitem">Oldest</li></a>
  <li class="break"></li>
  </ul></div>