PoorBooru/views/gallery.tt

26 lines
580 B
Plaintext

<h1>[% title %]</h1>
<div class="flex-c-horizontal flex-c-wrap gallery">
[% FOREACH entry IN media -%]
<a href="[% entry.view_uri %]">
<img class="gallery-image" src="[% entry.image_src %]" />
</a>
[% END -%]
</div>
<nav class="text-center">
[% IF pager.first -%]
<a href="[% pager.first %]">&lt;&lt;</a>
[% END -%]
[% IF pager.prev -%]
<a href="[% pager.prev %]">&lt;</a>
[% END -%]
<span>[% pager.cur %]</span>
[% IF pager.next -%]
<a href="[% pager.next %]">&gt;</a>
[% END -%]
[% IF pager.last -%]
<a href="[% pager.last %]">&gt;&gt;</a>
[% END -%]
</nav>