diff options
Diffstat (limited to 'templates/media.html')
-rw-r--r-- | templates/media.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/media.html b/templates/media.html new file mode 100644 index 0000000..478d8ae --- /dev/null +++ b/templates/media.html @@ -0,0 +1,18 @@ +{{template "layout.html" .}} +{{define "title"}} {{.Title}} {{end}} +{{define "content"}} +<div class="columns is-multiline"> +{{range .Data.Medias}} +<div class="card"> + <div class="card-image"> + <figure class="image is-fit"> + <img src="/media/image?path_hash={{.PathHash}}"> + </figure> + </div> +</div> +{{end}} +</div> +<div class="row"> + <a href="/media?page={{.Data.Next.Page}}" class="button is-pulled-right">next</a> +</div> +{{end}} |