aboutsummaryrefslogtreecommitdiff
path: root/templates/media.qtpl
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-05 19:26:29 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-08-05 19:26:29 +0200
commit5168a9476f0e83264ecafc85bc9145e8bdcbb8dc (patch)
tree5cd04e84f8aa427d274e16dd8cf507ff48468e07 /templates/media.qtpl
parent24c121a9ef229870f54de487de01c15a15ebbff1 (diff)
downloadlens-5168a9476f0e83264ecafc85bc9145e8bdcbb8dc.tar.gz
lens-5168a9476f0e83264ecafc85bc9145e8bdcbb8dc.tar.bz2
lens-5168a9476f0e83264ecafc85bc9145e8bdcbb8dc.zip
ref: Move net/http
I was young and naive, fasthttp does not fit my needs and make development slower. I'll move to net/http since it has a wider support and will spare some time on implementation detail things (like CSRF). It will allow me to reduce a bit of the code since there may be lib for handling cookie encryption and auth in general.
Diffstat (limited to 'templates/media.qtpl')
-rw-r--r--templates/media.qtpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/media.qtpl b/templates/media.qtpl
index 6217899..ae58e61 100644
--- a/templates/media.qtpl
+++ b/templates/media.qtpl
@@ -22,19 +22,19 @@ func (m *MediaPage) PreloadAttr() string {
{% for _, media := range p.Medias %}
<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 p.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 p.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>
{% endfor %}
</div>
<div class="row">
- <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 %}