summaryrefslogtreecommitdiffstats
path: root/templates/settings
diff options
context:
space:
mode:
Diffstat (limited to 'templates/settings')
-rw-r--r--templates/settings/_menu.html (renamed from templates/settings/_settings_identity_menu.html)0
-rw-r--r--templates/settings/_settings_system_menu.html5
-rw-r--r--templates/settings/settings.html (renamed from templates/settings/settings_system.html)4
-rw-r--r--templates/settings/settings_identity.html7
-rw-r--r--templates/settings/settings_system_domain_create.html39
-rw-r--r--templates/settings/settings_system_domain_delete.html33
-rw-r--r--templates/settings/settings_system_domain_edit.html19
-rw-r--r--templates/settings/settings_system_domains.html28
8 files changed, 2 insertions, 133 deletions
diff --git a/templates/settings/_settings_identity_menu.html b/templates/settings/_menu.html
index bdae143..bdae143 100644
--- a/templates/settings/_settings_identity_menu.html
+++ b/templates/settings/_menu.html
diff --git a/templates/settings/_settings_system_menu.html b/templates/settings/_settings_system_menu.html
deleted file mode 100644
index 9206045..0000000
--- a/templates/settings/_settings_system_menu.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<nav>
- <a href="/settings/system/basic/" {% if section == "basic" %}class="selected"{% endif %}>Basic</a>
- <a href="/settings/system/domains/" {% if section == "domains" %}class="selected"{% endif %}>Domains</a>
- <a href="/settings/system/users/" {% if section == "users" %}class="selected"{% endif %}>Users</a>
-</nav>
diff --git a/templates/settings/settings_system.html b/templates/settings/settings.html
index c10964f..016eebb 100644
--- a/templates/settings/settings_system.html
+++ b/templates/settings/settings.html
@@ -1,10 +1,10 @@
{% extends "base.html" %}
-{% block title %}{{ section.title }} - System Settings{% endblock %}
+{% block title %}{{ section.title }} - Settings{% endblock %}
{% block content %}
{% block menu %}
- {% include "settings/_settings_system_menu.html" %}
+ {% include "settings/_menu.html" %}
{% endblock %}
<form action="." method="POST">
{% csrf_token %}
diff --git a/templates/settings/settings_identity.html b/templates/settings/settings_identity.html
deleted file mode 100644
index cdbf197..0000000
--- a/templates/settings/settings_identity.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends "settings/settings_system.html" %}
-
-{% block title %}{{ section.title }} - Settings{% endblock %}
-
-{% block menu %}
- {% include "settings/_settings_identity_menu.html" %}
-{% endblock %}
diff --git a/templates/settings/settings_system_domain_create.html b/templates/settings/settings_system_domain_create.html
deleted file mode 100644
index 54d3640..0000000
--- a/templates/settings/settings_system_domain_create.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}Add Domain - System Settings{% endblock %}
-
-{% block content %}
- {% block menu %}
- {% include "settings/_settings_system_menu.html" %}
- {% endblock %}
- <form action="." method="POST">
- <h1>Add A Domain</h1>
- <p>
- Use this form to add a domain that your users can create identities
- on.
- </p>
- <p>
- Takahē supports multiple domains per server, but note that when
- identities are created they are <b>fixed to their chosen domain</b>,
- and you will <b>not be able to delete a domain with identities on it</b>.
- </p>
- <p>
- If you will be serving Takahē on the domain you choose, you can leave
- the "service domain" field blank. If you would like to let users create
- accounts on a domain serving something else, you must pick a unique
- "service domain" that pairs up to your chosen domain name, make sure
- Takahē is served on that, and add redirects
- for <tt>/.well-known/webfinger</tt>, <tt>/.well-known/host-meta</tt>
- and <tt>/.well-known/nodeinfo</tt> from the main domain to the
- service domain.
- </p>
- {% csrf_token %}
- {% for field in form %}
- {% include "forms/_field.html" %}
- {% endfor %}
- <div class="buttons">
- <a href="{{ domain.urls.delete }}" class="button delete">Delete</a>
- <button>Save</button>
- </div>
- </form>
-{% endblock %}
diff --git a/templates/settings/settings_system_domain_delete.html b/templates/settings/settings_system_domain_delete.html
deleted file mode 100644
index 220bbb9..0000000
--- a/templates/settings/settings_system_domain_delete.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}Delete {{ domain.domain }} - System Settings{% endblock %}
-
-{% block content %}
- {% block menu %}
- {% include "settings/_settings_system_menu.html" %}
- {% endblock %}
-
- <form action="." method="POST">
- {% csrf_token %}
-
- <h1>Deleting {{ domain.domain }}</h1>
-
- {% if num_identities %}
- <p>
- You cannot delete this domain as it has <b>{{ num_identities }}
- identit{{ num_identities|pluralize:"y,ies" }}</b> registered on it.
- </p>
- <p>
- You will need to manually remove all identities from this domain in
- order to delete it.
- </p>
- {% else %}
- <p>Please confirm deletion of this domain - there are no identities registed on it.</p>
- <div class="buttons">
- <a class="button" href="{{ domain.urls.edit }}">Cancel</a>
- <button class="delete">Confirm Deletion</button>
- </div>
- {% endif %}
- </form>
-
-{% endblock %}
diff --git a/templates/settings/settings_system_domain_edit.html b/templates/settings/settings_system_domain_edit.html
deleted file mode 100644
index c05d5d5..0000000
--- a/templates/settings/settings_system_domain_edit.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ domain.domain }} - System Settings{% endblock %}
-
-{% block content %}
- {% block menu %}
- {% include "settings/_settings_system_menu.html" %}
- {% endblock %}
- <form action="." method="POST">
- {% csrf_token %}
- {% for field in form %}
- {% include "forms/_field.html" %}
- {% endfor %}
- <div class="buttons">
- <a href="{{ domain.urls.delete }}" class="button delete">Delete</a>
- <button>Save</button>
- </div>
- </form>
-{% endblock %}
diff --git a/templates/settings/settings_system_domains.html b/templates/settings/settings_system_domains.html
deleted file mode 100644
index dccde65..0000000
--- a/templates/settings/settings_system_domains.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ section.title }} - System Settings{% endblock %}
-
-{% block content %}
- {% block menu %}
- {% include "settings/_settings_system_menu.html" %}
- {% endblock %}
- <section class="icon-menu">
- {% for domain in domains %}
- <a class="option" href="{{ domain.urls.edit }}">
- <i class="fa-solid fa-globe"></i>
- <span class="handle">
- {{ domain.domain }}
- <small>
- {% if domain.public %}Public{% else %}Private{% endif %}
- {% if domain.service_domain %}({{ domain.service_domain }}){% endif %}
- </small>
- </span>
- </a>
- {% empty %}
- <p class="option empty">You have no domains set up.</p>
- {% endfor %}
- <a href="/settings/system/domains/create/" class="option new">
- <i class="fa-solid fa-plus"></i> Add a domain
- </a>
- </section>
-{% endblock %}