modified: templates/user_giveaways.html
This commit is contained in:
@@ -15,7 +15,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Platform</th>
|
<th>Platform</th>
|
||||||
<th>Redeem</th>
|
<th>Status</th>
|
||||||
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -27,6 +28,15 @@
|
|||||||
{% if giveaway.aktiv %}
|
{% if giveaway.aktiv %}
|
||||||
<span class="badge badge-success">Redeemed</span>
|
<span class="badge badge-success">Redeemed</span>
|
||||||
{% else %}
|
{% 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>
|
<a href="{{ url_for('redeem_giveaway', guild_id=guild_id, uuid=giveaway['uuid']) }}" class="btn btn-primary btn-sm">Redeem</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user