This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/templates/app/index.html.twig
2021-04-26 17:31:24 +02:00

18 lines
No EOL
557 B
Twig

{% extends 'base.html.twig' %}
{% block body %}
{% if offerings|length > 0 %}
{% for offering in offerings %}
{% if offering.photoFilename %}
<img src="{{ asset('uploads/photos/' ~ offering.photofilename) }}" />
{% endif %}
<h4>{{ offering.title }}</h4>
<small>
{{ offering.createdAt|format_datetime('medium', 'short') }}
</small>
{% endfor %}
{% else %}
<p>There are currently no active listings</p>
{% endif %}
{% endblock %}