modified: templates/user_giveaways.html
This commit is contained in:
@@ -9,41 +9,60 @@
|
|||||||
<body>
|
<body>
|
||||||
{% include 'navigation.html' %}
|
{% include 'navigation.html' %}
|
||||||
<div class="container mt-5">
|
<div class="container mt-5">
|
||||||
<h2>Your Won Giveaways on Server {{ guild_id }}</h2>
|
<div class="text-center mb-4">
|
||||||
<table class="table table-bordered mt-4">
|
<h1>{{ g.user_info['username'] }}'s Won Giveaways</h1>
|
||||||
<thead>
|
<p class="text-muted">Server: <strong>{{ g.guild_name }}</strong> (ID: {{ g.guild_id }})</p>
|
||||||
<tr>
|
</div>
|
||||||
<th>Name</th>
|
|
||||||
<th>Platform</th>
|
{% if won_giveaways %}
|
||||||
<th>Status</th>
|
<div class="table-responsive">
|
||||||
<th>Action</th>
|
<table class="table table-hover table-bordered mt-4">
|
||||||
</tr>
|
<thead class="thead-dark">
|
||||||
</thead>
|
<tr>
|
||||||
<tbody>
|
<th>Name</th>
|
||||||
{% for giveaway in won_giveaways %}
|
<th>Platform</th>
|
||||||
<tr>
|
<th>Status</th>
|
||||||
<td>{{ giveaway.name }}</td>
|
<th>Action</th>
|
||||||
<td>{{ giveaway.platform }}</td>
|
</tr>
|
||||||
<td>
|
</thead>
|
||||||
{% if giveaway.aktiv %}
|
<tbody>
|
||||||
<span class="badge badge-success">Redeemed</span>
|
{% for giveaway in won_giveaways %}
|
||||||
{% else %}
|
<tr>
|
||||||
<span class="badge badge-warning">Not Redeemed</span>
|
<td>{{ giveaway.name }}</td>
|
||||||
{% endif %}
|
<td>{{ giveaway.platform }}</td>
|
||||||
</td>
|
<td>
|
||||||
<td>
|
{% if giveaway.aktiv %}
|
||||||
{% if giveaway.aktiv %}
|
<span class="badge badge-success">Redeemed <i class="fas fa-check-circle"></i></span>
|
||||||
<!-- Link to view the redeemed key -->
|
{% else %}
|
||||||
<a href="{{ url_for('redeem_giveaway', guild_id=guild_id, uuid=giveaway['uuid']) }}" class="btn btn-secondary btn-sm">View Key</a>
|
<span class="badge badge-warning">Not Redeemed <i class="fas fa-hourglass-half"></i></span>
|
||||||
{% else %}
|
{% endif %}
|
||||||
<!-- Link to redeem the giveaway -->
|
</td>
|
||||||
<a href="{{ url_for('redeem_giveaway', guild_id=guild_id, uuid=giveaway['uuid']) }}" class="btn btn-primary btn-sm">Redeem</a>
|
<td>
|
||||||
{% endif %}
|
{% if giveaway.aktiv %}
|
||||||
</td>
|
<!-- Link to view the redeemed key -->
|
||||||
</tr>
|
<a href="{{ url_for('redeem_giveaway', guild_id=g.guild_id, uuid=giveaway['uuid']) }}" class="btn btn-secondary btn-sm">
|
||||||
{% endfor %}
|
<i class="fas fa-eye"></i> View Key
|
||||||
</tbody>
|
</a>
|
||||||
</table>
|
{% else %}
|
||||||
|
<!-- Link to redeem the giveaway -->
|
||||||
|
<a href="{{ url_for('redeem_giveaway', guild_id=g.guild_id, uuid=giveaway['uuid']) }}" class="btn btn-primary btn-sm">
|
||||||
|
<i class="fas fa-gift"></i> Redeem
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="alert alert-info text-center" role="alert">
|
||||||
|
You have not won any giveaways on this server yet.
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Optional: Include FontAwesome for icons -->
|
||||||
|
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user