From 7e19694c1ed739976308a2b774d395d04b47bba4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 8 Feb 2022 22:00:40 +0200 Subject: [PATCH] fsd --- files/routes/front.py | 4 ++-- files/templates/authforms.html | 4 ++-- files/templates/default.html | 4 ++-- files/templates/header.html | 17 ++++++++++++++--- files/templates/log.html | 4 ++-- files/templates/login.html | 2 +- files/templates/login_2fa.html | 2 +- files/templates/settings.html | 2 +- files/templates/settings2.html | 4 ++-- files/templates/sign_up.html | 2 +- files/templates/sign_up_failed_ref.html | 2 +- files/templates/submit.html | 4 ++-- 12 files changed, 31 insertions(+), 20 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index edf6dee3ca..45c0c811dd 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -151,11 +151,11 @@ def front_all(v, sub=None): if v: defaultsorting = v.defaultsorting - if SITE_NAME == '2Much4You': defaulttime = 'all' + if sub or SITE_NAME == '2Much4You': defaulttime = 'all' else: defaulttime = v.defaulttime else: defaultsorting = "hot" - if SITE_NAME == '2Much4You': defaulttime = 'all' + if sub or SITE_NAME == '2Much4You': defaulttime = 'all' else: defaulttime = v.defaulttime sort=request.values.get("sort", defaultsorting) diff --git a/files/templates/authforms.html b/files/templates/authforms.html index ed6d9554ae..6d76ad8353 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -15,7 +15,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index 1bac5b79d3..5ea9e67efd 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -8,7 +8,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/header.html b/files/templates/header.html index 88505544aa..58a840f928 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -1,6 +1,15 @@