Fix small things

This commit is contained in:
2024-07-22 16:56:19 +02:00
parent 750d20c394
commit 5433e1d9ce
3 changed files with 18 additions and 15 deletions

View File

@ -33,7 +33,7 @@
</div>
{% endfor %}
</div>
{% for campaign in game.campaigns %}
{% for campaign in game.drop_campaigns.all %}
{% if not forloop.first %}<br>{% endif %}
<div class="mt-3">
<h3 class="h6">{{ campaign.name }}</h3>
@ -61,15 +61,15 @@
{% endif %}
{% endif %}
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-2">
{% for drop in campaign.drops %}
{% for drop in campaign.drops.all %}
<div class="col d-flex align-items-center position-relative">
<img src="{{ drop.image_url }}"
<img src="{{ drop.image_asset_url }}"
alt="{{ drop.name }} drop image"
class="img-fluid rounded me-3"
height="50"
width="50"
loading="lazy">
{{ drop.name }}
{{ drop.name }} - {{ drop.required_minutes_watched }}
</div>
{% endfor %}
</div>