rename /shop to /shop/awards and /hats to /shop/hats

pull/128/head
Aevann 2023-02-19 11:34:10 +02:00
parent f74d37e286
commit cb9ffefb7f
6 changed files with 10 additions and 10 deletions

View File

@ -20,7 +20,7 @@ from files.__main__ import app, cache, limiter
from .front import frontlist
@app.get("/shop")
@app.get("/shop/awards")
@app.get("/settings/shop")
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
@auth_required

View File

@ -7,7 +7,7 @@ from files.helpers.useractions import *
from files.routes.wrappers import *
from files.__main__ import app, limiter
@app.get("/hats")
@app.get("/shop/hats")
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
@auth_required
def hats(v:User):

View File

@ -8,10 +8,10 @@
<div class="col p-0">
<div class="container" style="padding-bottom: 0;">
<div class="row box-shadow-bottom bg-white" style="justify-content: center;">
<a class="btn btn-primary btn-block m-0 shop-tab" href="/shop">
<a class="btn btn-primary btn-block m-0 shop-tab" href="/shop/awards">
<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 active" href="/hats">
<a class="btn btn-primary btn-block m-0 shop-tab active" href="/shop/hats">
<span class="mr-auto ml-auto"><i class="fas fa-hat-cowboy mr-2"></i>HATS</span>
</a>
</div>

View File

@ -184,7 +184,7 @@
{% if FEATURES['AWARDS'] -%}
<li class="nav-item d-none d-lg-flex align-items-center justify-content-center text-center mx-1">
<a class="nav-link" href="/shop" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Shop"><i class="fas fa-store"></i></a>
<a class="nav-link" href="/shop/awards" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Shop"><i class="fas fa-store"></i></a>
</li>
{%- endif %}
@ -200,7 +200,7 @@
<img loading="lazy" src="{{v.profile_url}}" class="profile-pic-35">
{% if v.hat_active(v)[0] -%}
<img id="profile-pic-35-hat" class="profile-pic-35-hat hat" loading="lazy" src="{{v.hat_active(v)[0]}}?h=7">
{% elif request.path == '/hats' %}
{% elif request.path == '/shop/hats' %}
<img id="profile-pic-35-hat" class="profile-pic-35-hat hat d-none" loading="lazy">
{%- endif %}
</div>

View File

@ -58,8 +58,8 @@
{%- endif %}
{% if FEATURES['AWARDS'] -%}
<button type="button" class="col px-0 mr-3 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/shop" class="text-decoration-none">
<div class="text-center {% if request.path=='/shop' %}text-primary{% else %}text-muted{% endif %}">
<a href="/shop/awards" class="text-decoration-none">
<div class="text-center {% if request.path=='/shop/awards' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-store text-lg"></i>
<div class="text-small">Shop</div>
</div>

View File

@ -12,10 +12,10 @@
<div class="col p-0">
<div class="container" style="padding-bottom: 0;">
<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">
<a class="btn btn-primary btn-block m-0 shop-tab active" href="/shop/awards">
<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="/hats">
<a class="btn btn-primary btn-block m-0 shop-tab" href="/shop/hats">
<span class="mr-auto ml-auto"><i class="fas fa-hat-cowboy mr-2"></i>HATS</span>
</a>
</div>