2021-01-29 23:38:42 +00:00
|
|
|
{% extends 'layout.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-02-28 18:45:21 +00:00
|
|
|
|
|
|
|
{% block title %}{% trans "Administration" %}{% endblock %}
|
|
|
|
|
2021-01-29 23:38:42 +00:00
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<header class="block column is-offset-one-quarter pl-1">
|
2021-04-07 18:52:13 +00:00
|
|
|
<div class="columns is-mobile">
|
|
|
|
<div class="column">
|
|
|
|
<h1 class="title">{% block header %}{% endblock %}</h1>
|
2022-02-11 19:58:40 +00:00
|
|
|
{% block breadcrumbs %}{% endblock %}
|
2021-04-07 18:52:13 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
{% block edit-button %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-29 23:38:42 +00:00
|
|
|
</header>
|
|
|
|
|
2022-02-11 19:58:40 +00:00
|
|
|
|
2021-01-29 23:38:42 +00:00
|
|
|
<div class="block columns">
|
|
|
|
<nav class="menu column is-one-quarter">
|
2021-09-11 04:12:08 +00:00
|
|
|
<h2 class="menu-label">
|
2021-09-11 14:17:14 +00:00
|
|
|
{% url 'settings-dashboard' as url %}
|
2021-09-11 04:12:08 +00:00
|
|
|
<a
|
|
|
|
href="{{ url }}"
|
|
|
|
{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}
|
|
|
|
>{% trans "Dashboard" %}</a>
|
|
|
|
</h2>
|
2021-01-29 23:38:42 +00:00
|
|
|
{% if perms.bookwyrm.create_invites %}
|
2021-02-28 02:48:10 +00:00
|
|
|
<h2 class="menu-label">{% trans "Manage Users" %}</h2>
|
2021-01-29 23:38:42 +00:00
|
|
|
<ul class="menu-list">
|
2021-08-29 15:14:53 +00:00
|
|
|
{% if perms.bookwyrm.moderate_user %}
|
2021-03-28 21:20:49 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-users' as url %}
|
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Users" %}</a>
|
|
|
|
</li>
|
2021-08-29 15:14:53 +00:00
|
|
|
{% endif %}
|
2021-01-29 23:38:42 +00:00
|
|
|
<li>
|
2021-03-21 16:13:21 +00:00
|
|
|
{% url 'settings-invite-requests' as url %}
|
|
|
|
{% url 'settings-invites' as alt_url %}
|
2021-03-21 15:17:48 +00:00
|
|
|
<a href="{{ url }}"{% if url in request.path or request.path in alt_url %} class="is-active" aria-selected="true"{% endif %}>{% trans "Invites" %}</a>
|
2021-01-29 23:38:42 +00:00
|
|
|
</li>
|
2021-08-29 15:14:53 +00:00
|
|
|
{% if perms.bookwyrm.control_federation %}
|
2021-01-30 00:02:59 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-federation' as url %}
|
2021-06-01 21:28:53 +00:00
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Federated Instances" %}</a>
|
2021-01-30 00:02:59 +00:00
|
|
|
</li>
|
2021-08-29 15:14:53 +00:00
|
|
|
{% endif %}
|
2021-01-29 23:38:42 +00:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2021-09-08 21:32:11 +00:00
|
|
|
{% if perms.bookwyrm.moderate_user %}
|
|
|
|
<h2 class="menu-label">{% trans "Moderation" %}</h2>
|
|
|
|
<ul class="menu-list">
|
|
|
|
<li>
|
|
|
|
{% url 'settings-reports' as url %}
|
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Reports" %}</a>
|
|
|
|
</li>
|
2022-02-24 19:18:43 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-automod' as url %}
|
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Auto-moderation rules" %}</a>
|
|
|
|
</li>
|
2021-09-08 21:32:11 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-email-blocks' as url %}
|
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Email Blocklist" %}</a>
|
|
|
|
</li>
|
2021-09-17 19:59:16 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-ip-blocks' as url %}
|
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "IP Address Blocklist" %}</a>
|
|
|
|
</li>
|
2022-01-10 18:11:00 +00:00
|
|
|
<li>
|
2022-01-10 23:27:33 +00:00
|
|
|
{% url 'settings-link-domain' as url %}
|
2022-01-10 18:11:00 +00:00
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Link Domains" %}</a>
|
|
|
|
</li>
|
2021-09-08 21:32:11 +00:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2021-01-29 23:38:42 +00:00
|
|
|
{% if perms.bookwyrm.edit_instance_settings %}
|
2021-02-28 02:48:10 +00:00
|
|
|
<h2 class="menu-label">{% trans "Instance Settings" %}</h2>
|
2021-01-29 23:38:42 +00:00
|
|
|
<ul class="menu-list">
|
2021-05-19 21:55:01 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-announcements' as url %}
|
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Announcements" %}</a>
|
|
|
|
</li>
|
2021-01-29 23:38:42 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-site' as url %}
|
2021-02-28 18:45:21 +00:00
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Site Settings" %}</a>
|
2021-09-28 19:53:17 +00:00
|
|
|
{% block site-subtabs %}{% endblock %}
|
2021-01-29 23:38:42 +00:00
|
|
|
</li>
|
2022-02-27 18:00:50 +00:00
|
|
|
<li>
|
|
|
|
{% url 'settings-themes' as url %}
|
|
|
|
<a href="{{ url }}"{% if url in request.path %} class="is-active" aria-selected="true"{% endif %}>{% trans "Themes" %}</a>
|
|
|
|
</li>
|
2021-01-29 23:38:42 +00:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2022-03-19 16:11:59 +00:00
|
|
|
<div class="column is-clipped">
|
2021-01-29 23:38:42 +00:00
|
|
|
{% block panel %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|