diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-08-18 22:18:27 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-08-18 22:18:27 +0200 |
commit | bf23e30e4c6c548b94479b57aae5ebec14f9c95a (patch) | |
tree | 4ed839206f63f679e8ec1beca09e59fc80a6a073 /templates | |
parent | a1f09d1f143012570a62bcb2a8fe51c439ad68fb (diff) | |
download | lens-bf23e30e4c6c548b94479b57aae5ebec14f9c95a.tar.gz lens-bf23e30e4c6c548b94479b57aae5ebec14f9c95a.tar.bz2 lens-bf23e30e4c6c548b94479b57aae5ebec14f9c95a.zip |
fix: Fix album and media navidation
Diffstat (limited to 'templates')
-rw-r--r-- | templates/album.qtpl | 2 | ||||
-rw-r--r-- | templates/media.qtpl | 2 | ||||
-rw-r--r-- | templates/mosaic.qtpl | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/templates/album.qtpl b/templates/album.qtpl index 1f25bf6..835db57 100644 --- a/templates/album.qtpl +++ b/templates/album.qtpl @@ -30,7 +30,7 @@ func (m *AlbumPage) PreloadAttr() string { {%= Mosaic(p.Medias, p.PreloadAttr()) %} </div> <div> - <a href="/media?page={%d p.Next.Page %}" class="button is-pulled-right">next</a> + <a href="/album/?albumId={%s FromUInttoString(p.Next.AlbumID) %}&page={%d p.Next.Page %}" class="button is-pulled-right">next</a> </div> {% endfunc %} diff --git a/templates/media.qtpl b/templates/media.qtpl index 737d03d..4251deb 100644 --- a/templates/media.qtpl +++ b/templates/media.qtpl @@ -22,7 +22,7 @@ func (m *MediaPage) PreloadAttr() string { {%= Mosaic(p.Medias, p.PreloadAttr()) %} </div> <div> - <a href="/media?page={%d p.Next.Page %}" class="button is-pulled-right">next</a> + <a href="/media/?page={%d p.Next.Page %}" class="button is-pulled-right">next</a> </div> {% endfunc %} diff --git a/templates/mosaic.qtpl b/templates/mosaic.qtpl index 18dbcba..3e6ccf8 100644 --- a/templates/mosaic.qtpl +++ b/templates/mosaic.qtpl @@ -8,12 +8,12 @@ {% for _, media := range c %} <div class="card-image"> {% if media.IsVideo() %} - <video class="image is-fit" controls muted="true" poster="/media/thumbnail?path_hash={%s media.PathHash %}" preload="{%s preloadAttr %}"> - <source src="/media/image?path_hash={%s media.PathHash %}" type="{%s media.MIMEType %}"> + <video class="image is-fit" controls muted="true" poster="/media/thumbnail/?path_hash={%s media.PathHash %}" preload="{%s preloadAttr %}"> + <source src="/media/image/?path_hash={%s media.PathHash %}" type="{%s media.MIMEType %}"> </video> {% else %} <figure class="image is-fit"> - <img src="/media/thumbnail?path_hash={%s media.PathHash %}"> + <img src="/media/thumbnail/?path_hash={%s media.PathHash %}"> </figure> {% endif %} </div> |