forked from rDrama/rDrama
1
0
Fork 0
Aevann1 2022-03-02 17:03:52 +02:00
parent 73aee677c3
commit b23bd5a0ef
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 %}