forked from MarseyWorld/MarseyWorld
104 lines
3.4 KiB
HTML
104 lines
3.4 KiB
HTML
{% extends "default.html" %}
|
|
{%- set SHOP_FLAVOR = {
|
|
'rDrama': 'Stir drama.',
|
|
'PCM': 'Watch IP2.',
|
|
'Cringetopia': 'Look at cringe.',
|
|
'WPD': 'Watch people die.',
|
|
}[SITE_NAME]
|
|
-%}
|
|
|
|
<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>
|
|
|
|
{% block title %}
|
|
<title>Shop</title>
|
|
{% endblock %}
|
|
|
|
{% block pagetype %}message{% endblock %}
|
|
|
|
{% block Banner %}
|
|
<header class="container pb-1 text-center">
|
|
<img alt="shop banner" src="/assets/images/shop.webp" width="50%">
|
|
<h3 class="mt-4">{{SHOP_FLAVOR}} Earn coins.</h5>
|
|
<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>
|
|
{% if SITE_NAME not in ('Cringetopia', 'WPD') %}
|
|
<h5 class="mt-4">Your current marseybux: {{v.procoins}}</h3>
|
|
{% endif %}
|
|
</header>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% 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>
|
|
<button class="close" data-dismiss="alert" aria-label="Close">
|
|
<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>
|
|
<button class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
</button>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<pre>
|
|
|
|
|
|
</pre>
|
|
|
|
<div class="overflow-x-auto"><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>
|
|
<th scope="col">Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for a in awards %}
|
|
<tr>
|
|
<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'] != a['price'] %}
|
|
<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>
|
|
{% endif %}
|
|
<td class="shop-table-owned">{{a['owned']}}</td>
|
|
{% set kind = a['kind'] %}
|
|
<td class="shop-table-actions">
|
|
{% 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') %}
|
|
{% 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 %}
|
|
{% endif %}
|
|
</td>
|
|
<td class="shop-table-description">{{a['description']}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<pre>
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
{% endblock %}
|