2021-10-21 13:30:05 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Shop</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
{% block pagetype %}message{% endblock %}
|
|
|
|
|
|
|
|
{% block Banner %}
|
|
|
|
<header class="container pb-1 text-center">
|
2021-12-27 05:07:19 +00:00
|
|
|
<img alt="shop banner" src="/static/assets/images/shop.webp" width="50%">
|
2021-12-14 22:48:37 +00:00
|
|
|
<h3 class="mt-4">Stir drama. Earn coins.</h3>
|
|
|
|
<h5 class="mt-4">Total sales: {{sales}} coins</h3>
|
2021-12-28 13:53:08 +00:00
|
|
|
<h5 class="mt-4">Coins spent by you: {{v.coins_spent}} coins</h3>
|
2021-12-14 22:48:37 +00:00
|
|
|
</header>
|
2021-11-25 21:31:38 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2021-10-21 13:30:05 +00:00
|
|
|
{% block content %}
|
2021-10-21 20:50:15 +00:00
|
|
|
{% if error %}
|
|
|
|
<div class="alert alert-danger alert-dismissible fade show my-3" role="alert">
|
|
|
|
<i class="fas fa-exclamation-circle my-auto"></i>
|
|
|
|
<span>
|
|
|
|
{{error}}
|
|
|
|
</span>
|
2021-12-29 16:01:01 +00:00
|
|
|
<button type="button" role="button" class="close" data-dismiss="alert" aria-label="Close">
|
2021-10-21 20:50:15 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if msg %}
|
|
|
|
<div class="alert alert-success alert-dismissible fade show my-3" role="alert">
|
|
|
|
<i class="fas fa-check-circle my-auto" aria-hidden="true"></i>
|
|
|
|
<span>
|
|
|
|
{{msg}}
|
|
|
|
</span>
|
2021-12-29 16:01:01 +00:00
|
|
|
<button type="button" role="button" class="close" data-dismiss="alert" aria-label="Close">
|
2021-10-21 20:50:15 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<pre>
|
2021-10-21 20:50:15 +00:00
|
|
|
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
</pre>
|
2021-10-22 23:50:00 +00:00
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<table class="table table-striped shop">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Icon</th>
|
|
|
|
<th scope="col">Title</th>
|
|
|
|
<th scope="col">Price</th>
|
|
|
|
<th scope="col">Owned</th>
|
|
|
|
<th scope="col">Buy</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for a in awards %}
|
|
|
|
<tr data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="{{a['description']}}">
|
|
|
|
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
|
|
|
<td style="font-weight: bold">{{a['title']}}</td>
|
|
|
|
<td style="font-weight: bold">{{a['price']}}</td>
|
|
|
|
<td style="font-weight: bold">{{a['owned']}}</td>
|
|
|
|
{% set kind = a['kind'] %}
|
|
|
|
<td style="font-weight: bold">
|
2021-12-29 16:01:01 +00:00
|
|
|
<a class="d-flex btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" type="button" role="button" onclick="post_toast('/buy/{{kind}}')"><span class="m-auto">Buy</span></a>
|
|
|
|
{% if a['kind'] != "grass" %}<a class="d-flex marseybux btn btn-success {% if v.procoins < a['price'] %}disabled{% endif %}" type="button" role="button" onclick="post_toast('/buy/{{kind}}?mb=true')"><span class="m-auto">Buy with Marseybux</span></a>{% endif %}
|
2021-12-14 22:48:37 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
<pre>
|
2021-12-04 17:04:39 +00:00
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.table th {
|
|
|
|
padding-left: 0.3rem !important;
|
|
|
|
padding-right: 0.3rem !important;
|
|
|
|
}
|
|
|
|
.table td {
|
|
|
|
padding-left: 0.3rem !important;
|
|
|
|
padding-right: 0.3rem !important;
|
|
|
|
font-size: 0.9rem;
|
|
|
|
}
|
|
|
|
.marseybux {
|
|
|
|
font-size: 0.7rem !important;
|
|
|
|
}
|
2021-11-25 21:38:53 +00:00
|
|
|
}
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
.tooltip-inner {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
max-width: 300px;
|
|
|
|
}
|
|
|
|
</style>
|
2021-10-21 13:30:05 +00:00
|
|
|
{% endblock %}
|