|
|
@ -4,16 +4,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
{% block body %}
|
|
|
|
{% for post in posts.iterator %}
|
|
|
|
{% for post in posts.iterator %}
|
|
|
|
<div class="card" style="width: 42rem; margin: 20px 0 50px 100px;">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="card-body">
|
|
|
|
<h5 class="card-title">{{ post.species ? post.species.vernacularName : 'post_undefined'|trans }}</h5>
|
|
|
|
<h5 class="card-title"><a href="{{ path('app_post_show', {id: post.id}) }}">{{ post.species ? post.species.vernacularName : 'post_undefined'|trans }}</a></h5>
|
|
|
|
<h6 class="card-subtitle mb-2 text-muted">{{ post.foundDate | date("d/m/Y \\à H \\h") }}</h6>
|
|
|
|
<h6 class="card-subtitle mb-2 text-muted">{{ post.foundDate | date("d/m/Y \\à H \\h") }}</h6>
|
|
|
|
<p class="card-subtitle mb-2 text-muted">{{ post.latitude }}, {{ post.longitude }}, {{ post.altitude }}m</p>
|
|
|
|
<p class="card-subtitle mb-2 text-muted">{{ post.latitude }}, {{ post.longitude }}, {{ post.altitude }}m</p>
|
|
|
|
<p class="card-text">{{ post.commentary }}</p>
|
|
|
|
<p class="card-text">{{ post.commentary }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
<div class="card-footer">
|
|
|
|
28 ❤️
|
|
|
|
28 ❤️
|
|
|
|
128 💬
|
|
|
|
{{ post.comments.count() }} 💬
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|