Removed user listing and shop for non-admin users
This commit is contained in:
parent
c966a575b6
commit
fd2630e0d1
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
<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>
|
</li>
|
||||||
|
|
||||||
|
{% if v and v.admin_level > 1 %}
|
||||||
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-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>
|
<a class="nav-link" href="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users"><i class="fas fa-trophy"></i></a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -128,6 +129,7 @@
|
||||||
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1">
|
<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>
|
<a class="nav-link" href="/shop" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Shop"><i class="fas fa-store"></i></a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<li class="nav-item d-flex align-items-center justify-content-center text-center">
|
<li class="nav-item d-flex align-items-center justify-content-center text-center">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</button>
|
</button>
|
||||||
|
{% if v and v.admin_level > 1 %}
|
||||||
<button class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
|
<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">
|
<a href="/leaderboard" class="text-decoration-none" role="button">
|
||||||
<div class="text-center {% if request.path=='/leaderboard' %}text-primary{% else %}text-muted{% endif %}">
|
<div class="text-center {% if request.path=='/leaderboard' %}text-primary{% else %}text-muted{% endif %}">
|
||||||
|
@ -35,6 +36,7 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</button>
|
</button>
|
||||||
|
{% endif %}
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<button class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
|
<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">
|
<a href="/chat" class="text-decoration-none" role="button">
|
||||||
|
@ -44,6 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</button>
|
</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;">
|
<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">
|
<a href="/shop" class="text-decoration-none" role="button">
|
||||||
<div class="text-center {% if request.path=='/shop' %}text-primary{% else %}text-muted{% endif %}">
|
<div class="text-center {% if request.path=='/shop' %}text-primary{% else %}text-muted{% endif %}">
|
||||||
|
@ -52,6 +55,7 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</button>
|
</button>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<button class="col px-0 mr-3 btn btn-dead m-0" style="background: None !important; border: None;">
|
<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">
|
<a href="/signup" class="text-decoration-none" role="button">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue