forked from MarseyWorld/MarseyWorld
master
parent
73aee677c3
commit
b23bd5a0ef
|
@ -444,7 +444,7 @@ def sub_sidebar(v, sub):
|
|||
return redirect(f'/s/{sub.name}/settings')
|
||||
|
||||
|
||||
@app.get("/subs/<mode>")
|
||||
@app.get("/sub_toggle/<mode>")
|
||||
def sub_toggle(mode):
|
||||
if mode in ('Exclude subs', 'Include subs', 'View subs only'): session["subs"] = mode
|
||||
|
||||
|
|
|
@ -66,9 +66,9 @@
|
|||
{{subs | capitalize}}
|
||||
</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 subs != "Exclude subs" %}<a class="dropdown-item text-small-m" href="/subs/Exclude%20subs"><i class="fas fa-user-group mr-2 text-small-m"></i>Exclude subs</a>{% endif %}
|
||||
{% if subs != "Include subs" %}<a class="dropdown-item text-small-m" href="/subs/Include%20subs"><i class="fas fa-user-group mr-2 text-small-m"></i>Include subs</a>{% endif %}
|
||||
{% if subs != "View subs only" %}<a class="dropdown-item text-small-m" href="/subs/View%20subs%20only"><i class="fas fa-user-group mr-2 text-small-m"></i>View subs only</a>{% endif %}
|
||||
{% if subs != "Exclude subs" %}<a class="dropdown-item text-small-m" href="/sub_toggle/Exclude%20subs"><i class="fas fa-user-group mr-2 text-small-m"></i>Exclude subs</a>{% endif %}
|
||||
{% if subs != "Include subs" %}<a class="dropdown-item text-small-m" href="/sub_toggle/Include%20subs"><i class="fas fa-user-group mr-2 text-small-m"></i>Include subs</a>{% endif %}
|
||||
{% if subs != "View subs only" %}<a class="dropdown-item text-small-m" href="/sub_toggle/View%20subs%20only"><i class="fas fa-user-group mr-2 text-small-m"></i>View subs only</a>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue