modified: templates/user_giveaways.html

This commit is contained in:
SimolZimol
2024-10-29 10:50:21 +01:00
parent cea3981ff5
commit 775aa616df

View File

@@ -15,7 +15,8 @@
<tr>
<th>Name</th>
<th>Platform</th>
<th>Redeem</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@@ -27,6 +28,15 @@
{% if giveaway.aktiv %}
<span class="badge badge-success">Redeemed</span>
{% else %}
<span class="badge badge-warning">Not Redeemed</span>
{% endif %}
</td>
<td>
{% if giveaway.aktiv %}
<!-- Link to view the redeemed key -->
<a href="{{ url_for('redeem_giveaway', guild_id=guild_id, uuid=giveaway['uuid']) }}" class="btn btn-secondary btn-sm">View Key</a>
{% else %}
<!-- Link to redeem the giveaway -->
<a href="{{ url_for('redeem_giveaway', guild_id=guild_id, uuid=giveaway['uuid']) }}" class="btn btn-primary btn-sm">Redeem</a>
{% endif %}
</td>