commit feeb15d3c05cfe5c86cb8047071d99addcc7cc06
parent fb39842a612a1d4170aab697d8c95988d8ae68fb
Author: breadcat <breadcat@users.noreply.github.com>
Date: Wed, 24 Sep 2025 17:07:08 +0100
Pictures open fullscreen in new tabs when clicked
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/file.html b/templates/file.html
@@ -2,7 +2,7 @@
<h2>File: {{.Data.File.Filename}}</h2>
{{if hasAnySuffix .Data.File.Filename ".jpg" ".jpeg" ".png" ".gif" ".webp"}}
- <img src="/uploads/{{.Data.EscapedFilename}}" style="max-width:400px"><br>
+ <a href="/uploads/{{.Data.EscapedFilename}}" target="_blank"><img src="/uploads/{{.Data.EscapedFilename}}" style="max-width:400px"></a><br>
{{else if hasAnySuffix .Data.File.Filename ".mp4" ".webm" ".mov"}}
<video controls width="400" muted>
<source src="/uploads/{{.Data.EscapedFilename}}">