2021-10-21 13:30:05 +00:00
|
|
|
{% extends "default.html" %}
|
2022-06-08 03:25:39 +00:00
|
|
|
{%- set SHOP_FLAVOR = {
|
|
|
|
'rDrama': 'Stir drama.',
|
|
|
|
'PCM': 'Watch IP2.',
|
|
|
|
'Cringetopia': 'Look at cringe.',
|
|
|
|
'WPD': 'Watch people die.',
|
|
|
|
}[SITE_NAME]
|
|
|
|
-%}
|
2021-10-21 13:30:05 +00:00
|
|
|
|
2022-05-13 12:38:14 +00:00
|
|
|
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-html="true" title="<img src='/assets/images/chest.webp' width='20'>">
|
|
|
|
Tooltip with HTML
|
|
|
|
</button>
|
|
|
|
|
2021-10-21 13:30:05 +00:00
|
|
|
{% 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">
|
2022-03-31 16:28:53 +00:00
|
|
|
<img alt="shop banner" src="/assets/images/shop.webp" width="50%">
|
2022-06-08 03:25:39 +00:00
|
|
|
<h3 class="mt-4">{{SHOP_FLAVOR}} Earn coins.</h5>
|
2022-02-18 20:15:52 +00:00
|
|
|
<h5 class="mt-4">Total sales: {{sales}} coins</h5>
|
|
|
|
<h5 class="mt-4">Coins spent by you: {{v.coins_spent}} coins</h5>
|
|
|
|
<h5 class="mt-4">Lootboxes bought by you: {{v.lootboxes_bought}} lootbox{{'es' if v.lootboxes_bought != 1}}</h5>
|
|
|
|
<h5 class="mt-4">Your current coins: {{v.coins}}</h5>
|
2022-05-09 12:13:38 +00:00
|
|
|
{% if SITE_NAME not in ('Cringetopia', 'WPD') %}
|
|
|
|
<h5 class="mt-4">Your current marseybux: {{v.procoins}}</h3>
|
|
|
|
{% endif %}
|
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>
|
2022-02-01 02:20:25 +00:00
|
|
|
<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>
|
2022-02-01 02:20:25 +00:00
|
|
|
<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-31 16:51:53 +00:00
|
|
|
<div class="overflow-x-auto"><table class="table table-striped shop">
|
2021-12-14 22:48:37 +00:00
|
|
|
<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>
|
2022-03-19 14:10:04 +00:00
|
|
|
<th scope="col">Description</th>
|
2021-12-14 22:48:37 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for a in awards %}
|
2022-03-19 14:10:04 +00:00
|
|
|
<tr>
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-icon"><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
|
|
|
<td class="shop-table-title">{{a['title']}}</td>
|
2022-02-01 22:59:57 +00:00
|
|
|
{% if a['baseprice'] != a['price'] %}
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-price"><strike>{{a['baseprice']}}</strike> <em class="text-success">{{a['price']}}</em></td>
|
|
|
|
{% else %}
|
|
|
|
<td class="shop-table-price">{{a['price']}}</td>
|
2022-02-01 22:59:57 +00:00
|
|
|
{% endif %}
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-owned">{{a['owned']}}</td>
|
2021-12-14 22:48:37 +00:00
|
|
|
{% set kind = a['kind'] %}
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-actions">
|
2022-05-09 12:13:38 +00:00
|
|
|
{% if a['kind'] != "benefactor" %}<a class="d-flex btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}')"><span class="m-auto">Buy</span></a>{% endif %}
|
|
|
|
{% if SITE_NAME not in ('Cringetopia', 'WPD') %}
|
2022-05-19 21:59:35 +00:00
|
|
|
{% if a['kind'] != "grass" %}<a class="d-flex marseybux btn btn-success {% if v.procoins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}?mb=true')"><span class="m-auto">Buy with MBux</span></a>{% endif %}
|
2022-05-09 12:13:38 +00:00
|
|
|
{% endif %}
|
2022-03-19 14:10:04 +00:00
|
|
|
</td>
|
2022-05-18 02:07:07 +00:00
|
|
|
<td class="shop-table-description">{{a['description']}}</td>
|
2021-12-14 22:48:37 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
<pre>
|
2021-12-04 17:04:39 +00:00
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
2021-10-21 13:30:05 +00:00
|
|
|
{% endblock %}
|