$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="/edit/view-photo/?page=0"><li class="navitem">Newest</li></a>
$if show_left:
<a href="/edit/view-photo/?page=$(page - 1)"><li class="navitem">Newer</li></a>
$else:
<li class="navitem greyed">Newer</li>
$if show_right:
<a href="/edit/view-photo/?page=$(page + 1)"><li class="navitem">Older</li></a>
$else:
<li class="navitem greyed">Older</li>
<a href="/edit/view-photo/?page=$last_page"><li class="navitem">Oldest</li></a>
<li class="break"></li>
</ul></div>