50 lines
1.9 KiB
HTML
50 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Your Won Giveaways</title>
|
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
{% include 'navigation.html' %}
|
|
<div class="container mt-5">
|
|
<h2>Your Won Giveaways on Server {{ guild_id }}</h2>
|
|
<table class="table table-bordered mt-4">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Platform</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for giveaway in won_giveaways %}
|
|
<tr>
|
|
<td>{{ giveaway.name }}</td>
|
|
<td>{{ giveaway.platform }}</td>
|
|
<td>
|
|
{% 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>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html>
|