diff --git a/files/routes/jinja2.py b/files/routes/jinja2.py index 1bd1f8c59..e025c8c2a 100644 --- a/files/routes/jinja2.py +++ b/files/routes/jinja2.py @@ -111,7 +111,7 @@ def inject_constants(): "SIDEBAR_THREAD":SIDEBAR_THREAD, "BANNER_THREAD":BANNER_THREAD, "BADGE_THREAD":BADGE_THREAD, "SNAPPY_THREAD":SNAPPY_THREAD, "approved_embed_hosts":approved_embed_hosts, - "site_settings":get_settings(), "EMAIL":EMAIL, "max": max, "min": min, "user_can_see":User.can_see, + "SITE_SETTINGS":get_settings(), "EMAIL":EMAIL, "max": max, "min": min, "user_can_see":User.can_see, "TELEGRAM_ID":TELEGRAM_ID, "EMAIL_REGEX_PATTERN":EMAIL_REGEX_PATTERN, "TRUESCORE_DONATE_MINIMUM":TRUESCORE_DONATE_MINIMUM, "PROGSTACK_ID":PROGSTACK_ID, "DONATE_LINK":DONATE_LINK, "DONATE_SERVICE":DONATE_SERVICE, "BAN_EVASION_DOMAIN":BAN_EVASION_DOMAIN, diff --git a/files/templates/admin/admin_home.html b/files/templates/admin/admin_home.html index f709f1e5b..7ed8fdbb5 100644 --- a/files/templates/admin/admin_home.html +++ b/files/templates/admin/admin_home.html @@ -109,9 +109,9 @@ {% if v.admin_level >= PERMS['SITE_SETTINGS'] %} - {% for setting in site_settings.keys() %} + {% for setting in SITE_SETTINGS.keys() %}
- +
{% endfor %} diff --git a/files/templates/login/sign_up.html b/files/templates/login/sign_up.html index 5b4bfdbda..9dbbd156a 100644 --- a/files/templates/login/sign_up.html +++ b/files/templates/login/sign_up.html @@ -15,18 +15,18 @@ {% if ref_user %} {% set login_namespace.authtitle = '@' ~ ref_user.username ~ ' has invited you!' %} {% set login_namespace.authtext = 'Looks like someone wants you to join ' ~ SITE_NAME ~ '.' %} -{% elif not site_settings['login_required'] %} +{% elif not SITE_SETTINGS['login_required'] %} {% set login_namespace.authtitle = "Create your account." %} {% set login_namespace.authtext = "No email address required." %} {% endif %} -{% if ref_user or not site_settings['login_required'] %} +{% if ref_user or not SITE_SETTINGS['login_required'] %} {% block authtitle %}{{login_namespace.authtitle}}{% endblock %} {% block authtext %}{{login_namespace.authtext}}{% endblock %} {% endif %} {% block content %}
- {% if not ref_user and SITE_NAME == 'rDrama' and site_settings['login_required'] %} + {% if not ref_user and SITE_NAME == 'rDrama' and SITE_SETTINGS['login_required'] %}

@@ -46,7 +46,7 @@ xoxo carp 💋


- {% elif not ref_user and SITE_NAME == 'WPD' and site_settings['login_required'] %} + {% elif not ref_user and SITE_NAME == 'WPD' and SITE_SETTINGS['login_required'] %}

@@ -103,7 +103,7 @@ Already have an account?

- {% if not ref_user and SITE_NAME == 'WPD' and site_settings['login_required'] %} + {% if not ref_user and SITE_NAME == 'WPD' and SITE_SETTINGS['login_required'] %}

* okay so it's actually whenever I feel like hitting that Login Required button. I'm really sorry, but you have to understand: WE WANT TO BE YOUR FRIEND. And we can't do that unless you join. There's really no reason not to. Like I said, 8 seconds at most to register. What are you worried about? Your email being sold? I don't even know what that means and you don't either. Go ahead, tell me what you'd do if someone said like, "alright bud, go sell your email address to someone." WHAT DOES THAT MEAN? And, again, you really don't even need an email. Just a username and some stupid password. That's all. Come on. Peer pressure.