Add awarded badge and campaign details to badge and campaign templates

This commit is contained in:
Joakim Hellsén 2026-01-16 01:06:15 +01:00
commit e652036af4
No known key found for this signature in database
3 changed files with 63 additions and 2 deletions

View file

@ -155,6 +155,20 @@
src="{{ benefit.image_best_url|default:benefit.image_asset_url }}"
alt="{{ benefit.name }}" />
{% endif %}
{% if benefit.distribution_type == "BADGE" and drop.awarded_badge %}
<div style="margin-top: 6px; font-size: 0.9em;">
<strong>Awards Badge:</strong>
<a href="{% url 'twitch:badge_set_detail' set_id=drop.awarded_badge.badge_set.set_id %}">
<img src="{{ drop.awarded_badge.image_url_2x }}"
alt="{{ drop.awarded_badge.title }} badge"
height="24"
width="24"
style="vertical-align: middle;
margin-right: 4px" />
{{ drop.awarded_badge.title }}
</a>
</div>
{% endif %}
{% endfor %}
</td>
<td>