Implement /tags and /tag/id endpoints

This commit is contained in:
Lucas 2023-02-18 14:47:32 +00:00
parent 57b00f6c28
commit ead5728a99
5 changed files with 84 additions and 5 deletions

9
views/gallery.tt Normal file
View file

@ -0,0 +1,9 @@
<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>

View file

@ -1 +1 @@
<h1>No content</h1>
<h1>PoorBooru</h1>

7
views/tags.tt Normal file
View file

@ -0,0 +1,7 @@
<h1>Tags</h1>
<p class="text-center">
[% FOREACH tag IN tags -%]
<a href="[% tag.uri %]">[% tag.name %] ([% tag.count %])</a>
[% END -%]
</p>