MarseyWorld/files/templates/shop.html

74 lines
2.9 KiB
HTML
Raw Normal View History

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 %}
[DO NOT MERGE] titlesssssssssss (#468) * titles * testing * self * Revert "self" This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5. * Revert "testing" This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0. * testing on devrama * rewrite the html head * reference error or smth idk * tempalte debug * template debug redux * default2 * rename default2 -> root, page title * fix settings2 * include the set_variables block * root scope variables 2 * test 3 * remove unnecessary set * add pagetitles to all settings2 pages * add pagetitle to casino * remove bloat * remove duplicate site name thingy * page titles 2 * page titles 3 * remove duplicate imports and add page titles everywhere iirc * ok but actually this time * remove unnecessary newlines * fix title lol * > * fsdfsfsfsfsfs * fsfs * template configurations * fix 500 * reduce login template bloat * move files and add status codes where needful * move authfroms to login * remove 2fa bloat * verification code * sign up fixes * readability * fssfsfsfs * move forgot password to login/ * readability * don't emit comments * add page titles where needful * gsgsgs * modals: move to respective pages * testing on devrama * get home garbage out of title * remove insane amount of icon duplication * sign up text * add votes pagetitle * fix blank lines * Revert "fix blank lines" This reverts commit b2c54339970725d00b6fc82bb458c1757909952c. * Fix blank lines on sign_up.html. * title: votes.html more meaningful identifier. * titles: Lottery, Directory, Notifications * head final in submission.html * fix missing comma * > * test * title: /comments * fsfsfsfsf * titles: user_cards * head: only load video and audio meta attributes if they actually exist * titlessssss: /admin/lottery/participants * titlessssssss: extra quote in search.html * titlessssss: userpage voters. * titties: /h/<sub>/{followers,blockers,exilees[sic]} * test banner * Revert "test banner" This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826. * make submit.html inherit from default.html Co-authored-by: TLSM <duolsm@outlook.com>
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;">
<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>
<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-03-19 16:28:19 +00:00
<img loading="lazy" 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">
<li>Number of awards you bought: {{v.num_of_bought_awards}}</li>
<li>Coins you spent on awards: {{"{:,}".format(v.coins_spent)}}</li>
<li>Total award sales: {{"{:,}".format(sales)}}</li>
<li>Your current coins: {{"{:,}".format(v.coins)}}</li>
{% if FEATURES['MARSEYBUX'] %}
<li>Your current marseybux: {{"{:,}".format(v.marseybux)}}</li>
{% endif %}
<li>Your total award discount: {{v.formatted_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-05-03 17:26:44 +00:00
<div class="overflow-x-auto mt-3 mb-5"><table class="table table-striped shop">
2021-12-14 22:48:37 +00:00
<thead class="bg-primary text-white">
<tr>
<th class="disable-sort-click">Icon</th>
<th>Title</th>
<th>Price</th>
2022-12-10 10:40:34 +00:00
<th>Owned</th>
<th class="disable-sort-click">Buy</th>
<th>Description</th>
2021-12-14 22:48:37 +00:00
</tr>
</thead>
<tbody>
{% for a in awards %}
{% set kind = a['kind'] %}
{% set price = a['price'] %}
2022-03-19 14:10:04 +00:00
<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'] != price %}
<td data-sort-key="{{price}}" class="shop-table-price">
<span class="discounted-price">{{a['baseprice']}}</span> <em class="text-success">{{price}}</em>
2022-08-30 04:57:57 +00:00
</td>
{% else %}
<td class="shop-table-price">{{price}}</td>
2022-02-01 22:59:57 +00:00
{% 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-03-19 14:10:04 +00:00
</td>
<td class="shop-table-description">{{a['description']}}</td>
2021-12-14 22:48:37 +00:00
</tr>
{% endfor %}
</table>
</div>
2023-01-01 11:36:20 +00:00
2021-10-21 13:30:05 +00:00
{% endblock %}