Move game info into reward campaign details on dashboard
All checks were successful
Deploy to Server / deploy (push) Successful in 35s

This commit is contained in:
Joakim Hellsén 2026-06-14 21:13:02 +02:00
commit 64a622b6fa
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk

View file

@ -203,8 +203,18 @@
{% endif %}
</a>
</h3>
{% if campaign.game %}
<p style="margin: 0.25rem 0;">
<strong>Game:</strong>
<a href="{% url 'twitch:game_detail' campaign.game.twitch_id %}">{{ campaign.game.display_name }}</a>
</p>
{% elif campaign.is_sitewide %}
<p style="margin: 0.25rem 0;">
<strong>Type:</strong> Site-wide reward campaign
</p>
{% endif %}
{% if campaign.ends_at %}
<p>
<p style="margin: 0.25rem 0;">
<strong>Ends:</strong>
<time datetime="{{ campaign.ends_at|date:'c' }}"
title="{{ campaign.ends_at|date:'DATETIME_FORMAT' }}">
@ -216,18 +226,6 @@
<p>{{ campaign.summary }}</p>
{% endif %}
</div>
<div>
{% if campaign.game %}
<p>
<strong>Game:</strong>
<a href="{% url 'twitch:game_detail' campaign.game.twitch_id %}">{{ campaign.game.display_name }}</a>
</p>
{% elif campaign.is_sitewide %}
<p>
<strong>Type:</strong> Site-wide reward campaign
</p>
{% endif %}
</div>
</li>
{% endfor %}
</ul>