2021-10-21 13:30:05 +00:00
|
|
|
{% extends "default.html" %}
|
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 %}
|
2023-09-15 11:01:04 +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">
|
2023-09-15 11:01:04 +00:00
|
|
|
<div class="container" style="padding-bottom: 0">
|
|
|
|
<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>
|
|
|
|
|
2023-05-03 17:26:44 +00:00
|
|
|
<header id="shop-header" class="container text-center pb-0">
|
2023-09-14 23:51:55 +00:00
|
|
|
<img id="shop-banner" alt="shop banner" src="{{SITE_FULL_IMAGES}}/i/shop.webp">
|
2023-05-03 17:26:44 +00:00
|
|
|
<ul id="shop-stats" class="my-1 my-md-2">
|
2024-05-20 22:40:39 +00:00
|
|
|
{% if IS_EVENT() %}
|
2024-04-21 20:08:20 +00:00
|
|
|
<li>Number of lootboxes you bought: {{v.lootboxes_bought|commas}}</li>
|
2023-10-10 18:20:05 +00:00
|
|
|
{% endif %}
|
2024-04-21 20:08:20 +00:00
|
|
|
<li>Number of awards you bought: {{v.num_of_bought_awards|commas}}</li>
|
2024-03-09 11:39:13 +00:00
|
|
|
<li>Currency you spent on awards: {{v.currency_spent_on_awards|commas}}</li>
|
|
|
|
<li>Total currency spent on awards: {{sales|commas}}</li>
|
|
|
|
<li>Your current coins: {{v.coins|commas}}</li>
|
2023-05-03 17:26:44 +00:00
|
|
|
{% if FEATURES['MARSEYBUX'] %}
|
2024-03-09 11:39:13 +00:00
|
|
|
<li>Your current marseybux: {{v.marseybux|commas}}</li>
|
2023-05-03 17:26:44 +00:00
|
|
|
{% endif %}
|
2023-09-22 06:53:13 +00:00
|
|
|
<li>Your total award discount: {{v.formatted_award_discount}}</li>
|
2023-05-03 17:26:44 +00:00
|
|
|
</ul>
|
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 %}
|
2023-09-28 23:58:09 +00:00
|
|
|
{% if IS_HOMOWEEN() %}
|
|
|
|
<script defer src="{{'events/homoween/js/trickortreat.js' | asset}}"></script>
|
|
|
|
<div class ="mb-2" style="text-align:center">
|
2024-02-13 14:12:48 +00:00
|
|
|
<a id="trick-or-treat" class="btn btn-success triggerClass" data-nonce="{{g.nonce}}" data-onclick="postToastTrickOrTreat(this, '/trick_or_treat')"> twink or treat</a>
|
2023-09-28 23:58:09 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-10-29 12:56:44 +00:00
|
|
|
<div class="overflow-x-auto mt-3 mb-5">
|
2024-02-12 14:21:51 +00:00
|
|
|
<table class="shop">
|
2024-02-12 14:18:13 +00:00
|
|
|
<thead>
|
2023-10-29 12:56:44 +00:00
|
|
|
<tr>
|
|
|
|
<th class="disable-sort-click">Icon</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Price</th>
|
|
|
|
<th>Owned</th>
|
|
|
|
<th class="disable-sort-click">Buy</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for a in awards %}
|
|
|
|
{% set kind = a['kind'] %}
|
|
|
|
{% set price = a['price'] %}
|
2021-12-14 22:48:37 +00:00
|
|
|
<tr>
|
2023-10-29 12:56:44 +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>
|
|
|
|
{% if a['baseprice'] != price %}
|
2024-03-06 03:30:21 +00:00
|
|
|
<td data-sort="{{price}}" class="shop-table-price">
|
2024-06-21 17:08:16 +00:00
|
|
|
<span class="discounted-price">{{a['baseprice']|commas}}</span> <em class="text-success">{{price|commas}}</em>
|
2023-10-29 12:56:44 +00:00
|
|
|
</td>
|
|
|
|
{% else %}
|
|
|
|
<td class="shop-table-price">{{price}}</td>
|
|
|
|
{% endif %}
|
|
|
|
<td class="shop-table-owned">{{a['owned']}}</td>
|
|
|
|
<td class="shop-table-actions">
|
|
|
|
<button type="button" id="buy-{{loop.index}}" class="btn btn-success {% if v.coins+v.marseybux < price or (kind == 'grass' and v.coins < price) or (kind == 'benefactor' and v.marseybux < price) %}disabled{% endif %}" data-areyousure="postToastSwitch(this,'/buy/{{kind}}')" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)">Buy</button>
|
2022-08-30 04:57:57 +00:00
|
|
|
</td>
|
2023-10-29 12:56:44 +00:00
|
|
|
<td class="shop-table-description">{{a['description']}}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-10-21 13:30:05 +00:00
|
|
|
{% endblock %}
|