summaryrefslogtreecommitdiff
path: root/web/template/status.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/status.tmpl')
-rw-r--r--web/template/status.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/status.tmpl b/web/template/status.tmpl
index c477428fc..2216b48d5 100644
--- a/web/template/status.tmpl
+++ b/web/template/status.tmpl
@@ -15,9 +15,9 @@
</div>
</div>
{{with .MediaAttachments}}
- <div class="media {{(len .) | oddOrEven }}{{if eq (len .) 1}} single{{end}}{{if eq (len .) 2}} double{{end}}">
+ <div class="media photoswipe-gallery {{(len .) | oddOrEven }}{{if eq (len .) 1}} single{{end}}{{if eq (len .) 2}} double{{end}}">
{{range .}}
- <a href="{{.URL}}" target="_blank" title="{{.Description}}">
+ <a href="{{.URL}}" target="_blank" title="{{.Description}}" data-pswp-width="{{.Meta.Original.Width}}px" data-pswp-height="{{.Meta.Original.Height}}px">
{{if not .Description}}
<div class="no-image-desc" aria-hidden="true" ><i class="fa fa-info-circle"></i><span>Missing image description</span></div>
{{end}}