Duplicate names attachments

Improve image display in file browser

- Removed image caption and added filename as title attribute in <img> tag
- Changed alt attribute to use image description instead of filename
This commit is contained in:
loma-one 2025-05-31 10:21:37 +02:00 committed by GitHub
parent 544b926c9e
commit 538782609c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,14 +53,14 @@
{{foreach $files as $f}}
<div class="photo-album-image-wrapper">
<a href="#" class="photo-album-photo-link" data-link="{{$f.0}}" data-filename="{{$f.1}}" data-img="{{$f.2}}" data-alt="{{$f.3}}">
<img src="{{$f.2}}" alt="{{$f.1}}">
<p>{{$f.1}}</p>
</a>
</div>
<img src="{{$f.2}}" alt="{{$f.3}}" title="{{$f.1}}">
</a>
</div>
{{/foreach}}
</div>
</div>
</div>
</div>
</div>
</div>