diff --git a/ram/portal/templates/consists.html b/ram/portal/templates/consists.html index 36bbe8b..fa43ab6 100644 --- a/ram/portal/templates/consists.html +++ b/ram/portal/templates/consists.html @@ -8,7 +8,17 @@ {% for c in consist %}
- {% if c.image %}Card image cap{% endif %} + + {% if c.image %} + Card image cap + {% else %} + {% with c.consist_item.first.rolling_stock as r %} + {% for i in r.image.all %} + {% if i.is_thumbnail %}Card image cap{% endif %} + {% endfor %} + {% endwith %} + {% endif %} +

{{ c }}