Change how images and consists are sorted (#14)

This commit is contained in:
2023-01-02 16:08:25 +01:00
committed by GitHub
parent 89b666dab2
commit 32b5522a1e
10 changed files with 67 additions and 16 deletions

View File

@@ -10,7 +10,7 @@
{% else %}
{% with c.consist_item.first.rolling_stock as r %}
{% for i in r.image.all %}
{% if i.is_thumbnail %}<img src="{{ i.image.url }}" alt="Card image cap">{% endif %}
{% if forloop.first %}<img src="{{ i.image.url }}" alt="Card image cap">{% endif %}
{% endfor %}
{% endwith %}
{% endif %}