aboutsummaryrefslogtreecommitdiff
path: root/templates/media.html
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 19:42:39 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 19:42:39 +0200
commit3e435fc0d032a6cac0bdd15cdb138905ecdb7267 (patch)
tree5fc429dfa2e416e7e94d2a4d7064140918008b1b /templates/media.html
parent0acfc21f54745990d094b1e6e5de463d4d8a80a3 (diff)
downloadlens-3e435fc0d032a6cac0bdd15cdb138905ecdb7267.tar.gz
lens-3e435fc0d032a6cac0bdd15cdb138905ecdb7267.tar.bz2
lens-3e435fc0d032a6cac0bdd15cdb138905ecdb7267.zip
feat: Move error from `html/template` to qtpl
Diffstat (limited to 'templates/media.html')
-rw-r--r--templates/media.html24
1 files changed, 0 insertions, 24 deletions
diff --git a/templates/media.html b/templates/media.html
deleted file mode 100644
index 188d5b4..0000000
--- a/templates/media.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{{template "layout.html" .}}
-{{define "title"}} {{.Title}} {{end}}
-{{define "content"}}
-<div class="columns is-multiline">
-{{range .Data.Medias}}
-<div class="card">
- <div class="card-image">
- {{ if .IsVideo }}
- <video controls muted="true" poster="/media/thumbnail?path_hash={{.PathHash}}" preload="none">
- <source src="/media/image?path_hash={{.PathHash}}" type="{{.MIMEType}}">
- </video>
- {{ else }}
- <figure class="image is-fit">
- <img src="/media/thumbnail?path_hash={{.PathHash}}">
- </figure>
- {{ end }}
- </div>
-</div>
-{{end}}
-</div>
-<div class="row">
- <a href="/media?page={{.Data.Next.Page}}" class="button is-pulled-right">next</a>
-</div>
-{{end}}