master
Aevann1 2022-03-17 20:29:37 +02:00
parent d87f787240
commit 68263e7b20
1 changed files with 25 additions and 5 deletions

View File

@ -69,7 +69,8 @@
{% block navbar %}
<div class="d-flex align-items-center">
{% if v and v.paid_dues %}
{% if v %}
{% if v.paid_dues %}
{% if ccmode=="true"%}
<a data-bs-toggle="tooltip" data-bs-placement="bottom" title="Only show country club posts" class="btn btn-primary text-primary mx-2" href="?sort={{sort}}&t={{t}}&ccmode=false"><i class="fas fa-golf-club mr-2 "></i>CC</a>
{% else %}
@ -77,6 +78,25 @@
{% endif %}
{% endif %}
<div class="dropdown dropdown-actions mx-2 d-none d-lg-block">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-user-group mr-2"></i>
{% if v.subs == 1 %}
Include subscribed holes
{% elif v.subs == 2 %}
Include all holes
{% elif v.subs == 3 %}
View holes only
{% endif %}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
{% if v.subs != 1 %}<a class="dropdown-item" href="/sub_toggle/1"><i class="fas fa-user-group mr-2"></i>Include subscribed holes</a>{% endif %}
{% if v.subs != 2 %}<a class="dropdown-item" href="/sub_toggle/2"><i class="fas fa-user-group mr-2"></i>Include all holes</a>{% endif %}
{% if v.subs != 3 %}<a class="dropdown-item" href="/sub_toggle/3"><i class="fas fa-user-group mr-2"></i>View holes only</a>{% endif %}
</div>
</div>
{% endif %}
<div class="dropdown dropdown-actions mx-2">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% if t=="hour" %}<i class="fas fa-clock mr-2 "></i>