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.',
|
|
|
|
'WPD': 'Watch people die.',
|
|
|
|
}[SITE_NAME]
|
|
|
|
-%}
|
2022-11-19 22:20:38 +00:00
|
|
|
{% block pagetitle %}Shop{% endblock %}
|
2021-12-14 22:48:37 +00:00
|
|
|
{% block pagetype %}message{% endblock %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block banner %}
|
2022-09-19 18:30:54 +00:00
|
|
|
<div class="container-fluid bg-white sticky shop-tabs" style="padding-bottom: 0 !important;">
|
2022-09-18 17:12:28 +00:00
|
|
|
<div class="row box-shadow-bottom">
|
2022-09-19 18:30:54 +00:00
|
|
|
<div class="col p-0">
|
2022-09-18 17:12:28 +00:00
|
|
|
<div class="container" style="padding-bottom: 0;">
|
2022-09-19 18:30:54 +00:00
|
|
|
<div class="row box-shadow-bottom bg-white" style="justify-content: center;">
|
2023-02-19 09:34:10 +00:00
|
|
|
<a class="btn btn-primary btn-block m-0 shop-tab active" href="/shop/awards">
|
2022-09-18 17:12:28 +00:00
|
|
|
<span class="mr-auto ml-auto"><i class="fas fa-gift mr-2"></i>AWARDS</span>
|
|
|
|
</a>
|
2023-02-19 09:34:10 +00:00
|
|
|
<a class="btn btn-primary btn-block m-0 shop-tab" href="/shop/hats">
|
2022-09-18 17:12:28 +00:00
|
|
|
<span class="mr-auto ml-auto"><i class="fas fa-hat-cowboy mr-2"></i>HATS</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<header class="container pb-1 text-center">
|
2023-03-19 16:28:19 +00:00
|
|
|
<img loading="lazy" id="shop-banner" alt="shop banner" src="{{SITE_FULL_IMAGES}}/i/shop.webp">
|
2023-02-02 16:54:52 +00:00
|
|
|
<h5 class="mt-4">{{SHOP_FLAVOR}} Earn coins.</h5>
|
2022-09-10 06:43:38 +00:00
|
|
|
<h5 class="mt-4">Total sales: {{"{:,}".format(sales)}} coins</h5>
|
|
|
|
<h5 class="mt-4">Coins spent by you: {{"{:,}".format(v.coins_spent)}} coins</h5>
|
2022-02-18 20:15:52 +00:00
|
|
|
<h5 class="mt-4">Lootboxes bought by you: {{v.lootboxes_bought}} lootbox{{'es' if v.lootboxes_bought != 1}}</h5>
|
2022-09-10 06:43:38 +00:00
|
|
|
<h5 class="mt-4">Your current coins: {{"{:,}".format(v.coins)}}</h5>
|
2022-11-21 23:08:29 +00:00
|
|
|
{% if FEATURES['MARSEYBUX'] %}
|
2023-02-02 16:54:52 +00:00
|
|
|
<h5 class="mt-4">Your current marseybux: {{"{:,}".format(v.marseybux)}}</h5>
|
2022-05-09 12:13:38 +00:00
|
|
|
{% 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 %}
|
2022-10-29 00:38:39 +00:00
|
|
|
<div class="overflow-x-auto mt-1 mb-5"><table class="table table-striped shop">
|
2021-12-14 22:48:37 +00:00
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
2023-02-06 02:07:39 +00:00
|
|
|
<th class="disable-sort-click">Icon</th>
|
2022-12-10 08:47:15 +00:00
|
|
|
<th>Title</th>
|
|
|
|
<th>Price</th>
|
2022-12-10 10:40:34 +00:00
|
|
|
<th>Owned</th>
|
2023-02-06 02:07:39 +00:00
|
|
|
<th class="disable-sort-click">Buy</th>
|
2022-12-10 08:47:15 +00:00
|
|
|
<th>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-08-30 04:57:57 +00:00
|
|
|
<td class="shop-table-price">
|
2023-02-02 16:54:52 +00:00
|
|
|
<span class="discounted-price">{{a['baseprice']}}</span> <em class="text-success">{{a['price']}}</em>
|
2022-08-30 04:57:57 +00:00
|
|
|
</td>
|
2022-05-18 02:07:07 +00:00
|
|
|
{% else %}
|
2022-08-30 04:57:57 +00:00
|
|
|
<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-08-10 21:28:45 +00:00
|
|
|
{% if kind != "benefactor" %}
|
2022-12-30 12:14:18 +00:00
|
|
|
<button type="button" id="buy1-{{loop.index}}" class="btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" data-areyousure="postToastSwitch(this,'/buy/{{kind}}')" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)"><span class="m-auto">Buy</span></button>
|
2022-08-06 02:03:10 +00:00
|
|
|
{% endif %}
|
2022-11-21 23:08:29 +00:00
|
|
|
{% if FEATURES['MARSEYBUX'] %}
|
2022-08-10 21:28:45 +00:00
|
|
|
{% if kind != "grass" %}
|
2022-12-30 12:14:18 +00:00
|
|
|
<button type="button" id="buy2-{{loop.index}}" class="marseybux btn btn-success {% if v.marseybux < a['price'] %}disabled{% endif %}" data-areyousure="postToastSwitch(this,'/buy/{{kind}}?mb=true')" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)"><span class="m-auto">Buy with MBux</span></button>
|
2022-08-06 02:03:10 +00:00
|
|
|
{% 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>
|
2022-10-29 00:38:39 +00:00
|
|
|
</div>
|
2023-01-01 11:36:20 +00:00
|
|
|
|
2021-10-21 13:30:05 +00:00
|
|
|
{% endblock %}
|