summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-18 00:09:04 -0700
committerAndrew Godwin2022-11-18 00:09:04 -0700
commit1b44a253316a84f40070264ea8134c86d1223441 (patch)
tree2caa56d54a8e81f14649b826f9f3ef5a7c1326ae /templates
parentb3072c81ba73a16381366960841b6c294cc1fa6e (diff)
downloadtakahe-1b44a253316a84f40070264ea8134c86d1223441.tar.gz
takahe-1b44a253316a84f40070264ea8134c86d1223441.tar.bz2
takahe-1b44a253316a84f40070264ea8134c86d1223441.zip
Signup and invite tweaks
Diffstat (limited to 'templates')
-rw-r--r--templates/activities/_menu.html8
-rw-r--r--templates/admin/invites.html9
-rw-r--r--templates/auth/signup.html1
-rw-r--r--templates/emails/account_new.txt (renamed from templates/emails/new_account.txt)0
-rw-r--r--templates/settings/_menu.html3
5 files changed, 18 insertions, 3 deletions
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 @@
<i class="fa-solid fa-city"></i> Local Posts
</a>
<h3></h3>
- <a href="{% url "signup" %}" {% if current_page == "signup" %}class="selected"{% endif %}>
- <i class="fa-solid fa-user-plus"></i> Create Account
- </a>
+ {% if config.signup_allowed %}
+ <a href="{% url "signup" %}" {% if current_page == "signup" %}class="selected"{% endif %}>
+ <i class="fa-solid fa-user-plus"></i> Create Account
+ </a>
+ {% endif %}
{% endif %}
</nav>
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 %}
+ <p>
+ Please use the <a href="/djadmin/users/invite/">Django Admin</a> for now.
+ </p>
+{% 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 %}
<fieldset>
<legend>Create An Account</legend>
+ {{ config.signup_text|safe|linebreaks }}
{% for field in form %}
{% include "forms/_field.html" %}
{% endfor %}
diff --git a/templates/emails/new_account.txt b/templates/emails/account_new.txt
index 73c7fa4..73c7fa4 100644
--- a/templates/emails/new_account.txt
+++ b/templates/emails/account_new.txt
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 @@
<a href="{% url "admin_identities" %}" {% if section == "identities" %}class="selected"{% endif %}>
<i class="fa-solid fa-id-card"></i> Identities
</a>
+ <a href="{% url "admin_invites" %}" {% if section == "invites" %}class="selected"{% endif %}>
+ <i class="fa-solid fa-envelope"></i> Invites
+ </a>
<a href="/djadmin">
<i class="fa-solid fa-gear"></i> Django Admin
</a>