Removed user listing and shop for non-admin users

This commit is contained in:
Chris Drzewiecki 2022-05-10 01:04:55 -06:00
parent c966a575b6
commit fd2630e0d1
2 changed files with 6 additions and 0 deletions

View file

@ -121,6 +121,7 @@
<a class="nav-link" href="/comments" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comments"><i class="fas fa-comment-dots"></i></a>
</li>
{% if v and v.admin_level > 1 %}
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1">
<a class="nav-link" href="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users"><i class="fas fa-trophy"></i></a>
</li>
@ -128,6 +129,7 @@
<li class="nav-item d-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>
</li>
{% endif %}
<li class="nav-item d-flex align-items-center justify-content-center text-center">
<div class="dropdown">

View file

@ -27,6 +27,7 @@
</div>
</a>
</button>
{% if v and v.admin_level > 1 %}
<button class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/leaderboard" class="text-decoration-none" role="button">
<div class="text-center {% if request.path=='/leaderboard' %}text-primary{% else %}text-muted{% endif %}">
@ -35,6 +36,7 @@
</div>
</a>
</button>
{% endif %}
{% if v %}
<button class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/chat" class="text-decoration-none" role="button">
@ -44,6 +46,7 @@
</div>
</a>
</button>
{% if v and v.admin_level > 1 %}
<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" role="button">
<div class="text-center {% if request.path=='/shop' %}text-primary{% else %}text-muted{% endif %}">
@ -52,6 +55,7 @@
</div>
</a>
</button>
{% endif %}
{% else %}
<button class="col px-0 mr-3 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/signup" class="text-decoration-none" role="button">