forked from MarseyWorld/MarseyWorld
fds
parent
1ae969f077
commit
e58167fd1a
|
@ -439,7 +439,7 @@ def sub_sidebar(v, sub):
|
||||||
return redirect(f'/s/{sub.name}/settings')
|
return redirect(f'/s/{sub.name}/settings')
|
||||||
|
|
||||||
|
|
||||||
@app.post("/sub_toggle/<mode>")
|
@app.get("/sub_toggle/<mode>")
|
||||||
def sub_toggle(mode):
|
def sub_toggle(mode):
|
||||||
if mode in ('Exclude subs', 'Include subs', 'View subs only'): session["subs"] = mode
|
if mode in ('Exclude subs', 'Include subs', 'View subs only'): session["subs"] = mode
|
||||||
return redirect('/')
|
return redirect('/')
|
||||||
|
|
|
@ -48,9 +48,9 @@
|
||||||
{{subs | capitalize}}
|
{{subs | capitalize}}
|
||||||
</button>
|
</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);">
|
<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" %}<button class="dropdown-item" onclick="post('/sub_toggle/Exclude%20subs')"> <i class="fas fa-user-group mr-2"></i>Exclude subs</button>{% endif %}
|
{% if subs != "Exclude subs" %}<a class="dropdown-item" href="/sub_toggle/Exclude%20subs"><i class="fas fa-user-group mr-2"></i>Exclude subs</a>{% endif %}
|
||||||
{% if subs != "Include subs" %}<button class="dropdown-item" onclick="post('/sub_toggle/Include%20subs')"> <i class="fas fa-user-group mr-2"></i>Include subs</button>{% endif %}
|
{% if subs != "Include subs" %}<a class="dropdown-item" href="/sub_toggle/Include%20subs"><i class="fas fa-user-group mr-2"></i>Include subs</a>{% endif %}
|
||||||
{% if subs != "View subs only" %}<button class="dropdown-item" onclick="post('/sub_toggle/View%20subs%20only')"><i class="fas fa-user-group mr-2"></i>View subs only</button>{% endif %}
|
{% if subs != "View subs only" %}<a class="dropdown-item" href="/sub_toggle/View%20subs%20only"><i class="fas fa-user-group mr-2"></i>View subs only</a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue