summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2022-08-07 17:58:01 +0200
committerLibravatar GitHub <noreply@github.com>2022-08-07 17:58:01 +0200
commitf2a6ae3ef8dee5764bf99e051c4a2ff548b1d8ca (patch)
tree5c853ad758fe0d3702bf870d21392ebc87582813 /web/template
parent[frontend] style blockquote nicely within content (#742) (diff)
downloadgotosocial-f2a6ae3ef8dee5764bf99e051c4a2ff548b1d8ca.tar.xz
[feature] Photoswipe gallery (#740)
* implement photoswipe galleries * dependency wrangling * photoswipe-dynamic-caption plugin
Diffstat (limited to 'web/template')
-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}}