aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-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 %}