From 1b44a253316a84f40070264ea8134c86d1223441 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 18 Nov 2022 00:09:04 -0700 Subject: Signup and invite tweaks --- templates/activities/_menu.html | 8 +++++--- templates/admin/invites.html | 9 +++++++++ templates/auth/signup.html | 1 + templates/emails/account_new.txt | 8 ++++++++ templates/emails/new_account.txt | 8 -------- templates/settings/_menu.html | 3 +++ 6 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 templates/admin/invites.html create mode 100644 templates/emails/account_new.txt delete mode 100644 templates/emails/new_account.txt (limited to 'templates') diff --git a/templates/activities/_menu.html b/templates/activities/_menu.html index 6b40197..01f34cd 100644 --- a/templates/activities/_menu.html +++ b/templates/activities/_menu.html @@ -27,9 +27,11 @@ Local Posts

- - Create Account - + {% if config.signup_allowed %} + + Create Account + + {% endif %} {% endif %} diff --git a/templates/admin/invites.html b/templates/admin/invites.html new file mode 100644 index 0000000..14e05f3 --- /dev/null +++ b/templates/admin/invites.html @@ -0,0 +1,9 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}Invites{% endblock %} + +{% block content %} +

+ Please use the Django Admin for now. +

+{% endblock %} diff --git a/templates/auth/signup.html b/templates/auth/signup.html index d519476..b1aaa50 100644 --- a/templates/auth/signup.html +++ b/templates/auth/signup.html @@ -7,6 +7,7 @@ {% csrf_token %}
Create An Account + {{ config.signup_text|safe|linebreaks }} {% for field in form %} {% include "forms/_field.html" %} {% endfor %} diff --git a/templates/emails/account_new.txt b/templates/emails/account_new.txt new file mode 100644 index 0000000..73c7fa4 --- /dev/null +++ b/templates/emails/account_new.txt @@ -0,0 +1,8 @@ +Your email address was used to create a new account at {{config.site_name}} (https://{{settings.MAIN_DOMAIN}}). + +To confirm your new account, go to this link: + +https://{{settings.MAIN_DOMAIN}}/auth/reset/{{reset.token}}/ + +If this was not you, then please ignore this message - your email will not be +used to make an account if this link is not visited. diff --git a/templates/emails/new_account.txt b/templates/emails/new_account.txt deleted file mode 100644 index 73c7fa4..0000000 --- a/templates/emails/new_account.txt +++ /dev/null @@ -1,8 +0,0 @@ -Your email address was used to create a new account at {{config.site_name}} (https://{{settings.MAIN_DOMAIN}}). - -To confirm your new account, go to this link: - -https://{{settings.MAIN_DOMAIN}}/auth/reset/{{reset.token}}/ - -If this was not you, then please ignore this message - your email will not be -used to make an account if this link is not visited. diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index dd43912..21bc048 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -30,6 +30,9 @@ Identities + + Invites + Django Admin -- cgit v1.2.3