ventry/templates/partials/home/__gallery.html.twig

12 lines
464 B
Twig
Raw Normal View History

2023-11-03 20:17:49 +00:00
{% block gallery %}
<div class="image-grid">
{% for file in files %}
<div class="image-container">
<a href="{{ path('app_serve_file', {'filename': file.name}) }}">
<img draggable="false" src="{{ asset('uploads/' ~ file.user.id ~ '/' ~ file.name) }}" class=""
alt="{{ file.name }}">
</a>
</div>
{% endfor %}
</div>
{% endblock %}