Implement /tags and /tag/id endpoints
This commit is contained in:
parent
57b00f6c28
commit
ead5728a99
5 changed files with 84 additions and 5 deletions
9
views/gallery.tt
Normal file
9
views/gallery.tt
Normal 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>
|
|
@ -1 +1 @@
|
|||
<h1>No content</h1>
|
||||
<h1>PoorBooru</h1>
|
||||
|
|
7
views/tags.tt
Normal file
7
views/tags.tt
Normal 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>
|
Reference in a new issue