Aevann 2023-08-05 13:44:05 +03:00
parent b0069e18e0
commit 847fb2a6b7
7 changed files with 101 additions and 101 deletions

View File

@ -65,8 +65,8 @@ def selected_tab(request):
return 'new'
elif request.path == '/comments':
return 'comments'
elif request.path == '/leaderboard':
return 'leaderboard'
elif request.path == '/casino':
return 'casino'
elif request.path == '/chat':
return 'chat'
elif request.path=='/shop/awards':

View File

@ -163,12 +163,12 @@
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 ml-1">
<a href="/leaderboard" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-trophy text-lg"></i>
<div class="text-small-extra">Leaderboard</div>
</div>
</a>
<a href="/casino" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-cards text-lg"></i>
<div class="text-small-extra">Casino</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/signup?redirect=/fds" class="text-decoration-none">

View File

@ -165,12 +165,12 @@
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 ml-1">
<a href="/leaderboard" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-trophy text-lg"></i>
<div class="text-small-extra">Leaderboard</div>
</div>
</a>
<a href="/casino" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-cards text-lg"></i>
<div class="text-small-extra">Casino</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/signup?redirect=/fds" class="text-decoration-none">

View File

@ -164,12 +164,12 @@
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 ml-1">
<a href="/leaderboard" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-trophy text-lg"></i>
<div class="text-small-extra">Leaderboard</div>
</div>
</a>
<a href="/casino" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-cards text-lg"></i>
<div class="text-small-extra">Casino</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/signup?redirect=/fds" class="text-decoration-none">

View File

@ -166,12 +166,12 @@
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 ml-1">
<a href="/leaderboard" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-trophy text-lg"></i>
<div class="text-small-extra">Leaderboard</div>
</div>
</a>
<a href="/casino" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-cards text-lg"></i>
<div class="text-small-extra">Casino</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/signup?redirect=/fds" class="text-decoration-none">

View File

@ -186,8 +186,8 @@
</a>
{% if v and FEATURES['GAMBLING'] %}
<a class="mobile-nav-icon d-md-none" href="/casino" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Casino">
<i class="fas fa-cards align-middle text-gray-500 black"></i>
<a class="mobile-nav-icon d-md-none" href="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Leaderboard">
<i class="fas fa-trophy align-middle text-gray-500 black"></i>
</a>
{% endif %}

View File

@ -1,82 +1,82 @@
<div class="container d-inline-flex d-lg-none">
<div class="row fixed-bottom bg-white border-top" id="mobile-bottom-navigation-bar"
style="z-index: 1000; bottom: 0px; transition: bottom cubic-bezier(0, 0, 0.2, 1) 220ms;">
<div class="row fixed-bottom bg-white border-top" id="mobile-bottom-navigation-bar"
style="z-index: 1000; bottom: 0px; transition: bottom cubic-bezier(0, 0, 0.2, 1) 220ms;">
<button type="button" class="nobackground border-0 col px-0 ml-3 btn btn-dead m-0">
<a href="/" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='home' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-home-alt text-lg"></i>
<div class="text-small-extra">Home</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 ml-3 btn btn-dead m-0">
<a href="/" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='home' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-home-alt text-lg"></i>
<div class="text-small-extra">Home</div>
</div>
</a>
</button>
{% if v and v.defaultsorting == 'new' %}
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0">
<a href="/?sort=hot" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='hot' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-fire text-lg"></i>
<div class="text-small-extra">Hot</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0">
<a href="/?sort=hot" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='hot' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-fire text-lg"></i>
<div class="text-small-extra">Hot</div>
</div>
</a>
</button>
{% else %}
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0" style="margin-left:-10px!important">
<a href="/?sort=new" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='new' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-sparkles text-lg"></i>
<div class="text-small-extra">New</div>
</div>
</a>
</button>
{% endif %}
<button type="button" class="nobackground border-0 col px-0 mr-2 btn btn-dead m-0">
<a href="/comments" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='comments' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-comment-dots text-lg"></i>
<div class="text-small-extra">Comments</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 ml-1">
<a href="/leaderboard" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='leaderboard' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-trophy text-lg"></i>
<div class="text-small-extra">Leaderboard</div>
</div>
</a>
</button>
{% if v %}
{% if FEATURES['CHAT'] -%}
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 pt-0" style="margin-right:-10px!important">
<a href="/chat" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='chat' %}text-primary{% else %}text-muted{% endif %}">
<b class="text-lg" style="padding-top:10px" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">{{g.loggedin_chat}}</b>
<div class="text-small-extra">Chat</div>
</div>
</a>
</button>
{%- endif %}
{% if FEATURES['AWARDS'] -%}
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/shop/awards" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='shop' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-store text-lg"></i>
<div class="text-small-extra">Shop</div>
</div>
</a>
</button>
{%- endif %}
{% else %}
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/signup?redirect={{request.full_path | urlencode}}" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-user-plus text-lg"></i>
<div class="text-small-extra">Sign Up</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0" style="margin-left:-10px!important">
<a href="/?sort=new" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='new' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-sparkles text-lg"></i>
<div class="text-small-extra">New</div>
</div>
</a>
</button>
{% endif %}
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0">
<a href="/comments" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='comments' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-comment-dots text-lg"></i>
<div class="text-small-extra">Comments</div>
</div>
</a>
</button>
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0">
<a href="/casino" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='casino' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-cards text-lg"></i>
<div class="text-small-extra">Casino</div>
</div>
</a>
</button>
{% if v %}
{% if FEATURES['CHAT'] -%}
<button type="button" class="nobackground border-0 col px-0 btn btn-dead m-0 pt-0" style="margin-right:-10px!important">
<a href="/chat" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='chat' %}text-primary{% else %}text-muted{% endif %}">
<b class="text-lg" style="padding-top:10px" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">{{g.loggedin_chat}}</b>
<div class="text-small-extra">Chat</div>
</div>
</a>
</button>
{%- endif %}
{% if FEATURES['AWARDS'] -%}
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/shop/awards" class="text-decoration-none">
<div class="text-center {% if request|selected_tab=='shop' %}text-primary{% else %}text-muted{% endif %}">
<i class="fas fa-store text-lg"></i>
<div class="text-small-extra">Shop</div>
</div>
</a>
</button>
{%- endif %}
{% else %}
<button type="button" class="nobackground border-0 col px-0 mr-3 btn btn-dead m-0">
<a href="/signup?redirect={{request.full_path | urlencode}}" class="text-decoration-none">
<div class="text-center text-muted">
<i class="fas fa-user-plus text-lg"></i>
<div class="text-small-extra">Sign Up</div>
</div>
</a>
</button>
{% endif %}
</div>
</div>
<script defer src="{{'js/mobile_navigation_bar.js' | asset}}"></script>