2024-02-07 17:31:12 +13:00
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
{% extends 'themes/' + theme() + '/base.html' %}
{% else %}
{% extends "base.html" %}
{% endif %} %}
2024-09-16 19:41:48 -04:00
{% from 'bootstrap/form.html' import render_form, render_field %}
2024-04-14 20:05:40 +12:00
{% set active_child = 'admin_federation' %}
2023-12-17 00:12:49 +13:00
{% block app_content %}
< div class = "row" >
< div class = "col" >
2024-04-14 20:05:40 +12:00
< h1 > {{ _('Federation') }}< / h1 >
{{ render_form(form) }}
2023-12-17 00:12:49 +13:00
< / div >
< / div >
2024-04-14 20:05:40 +12:00
< hr / >
2024-09-16 19:41:48 -04:00
< div class = "row" >
< div class = "col" >
< p > Import / Export Bans< / p >
< p > JSON format:< / p >
< pre > < code >
{
"banned_instances": ["banned1.social", "banned2.social"],
2024-09-26 14:46:04 -04:00
"allowed_instances": ["allowed1.social", "allowed2.social"],
2024-09-16 19:41:48 -04:00
"banned_domains": ["banned3.social"],
2024-09-25 16:50:47 -04:00
"banned_tags": [{"name":"badtag","display_as":"BaDtAg"},{...}],
2024-09-16 19:41:48 -04:00
"banned_users": ["baduser@banned4.social"]
}< / code >
< / pre >
2024-09-26 14:46:04 -04:00
< p > Note: only one of "banned_instances" or "allowed_instances" will be populated.< / p >
2024-09-25 16:50:47 -04:00
<!-- {{ render_field(ban_lists_form.import_submit) }} -->
<!-- {{ render_field(ban_lists_form.export_submit) }} -->
{{ render_form(ban_lists_form) }}
2024-09-16 19:41:48 -04:00
< / div >
< / div >
< hr / >
2024-09-11 19:14:12 -04:00
< div class = "row" >
< div class = "column" >
2024-09-13 11:10:10 -04:00
< p > Use this to "pre-load" known threadiverse communities, as ranked by posts and activity. The list of communities pulls from the same list as < a href = "https://lemmyverse.net/communities" > LemmyVerse< / a > . NSFW communities and communities from banned instances are excluded.< / p >
{% if current_app_debug %}
< p > *** This instance is in development mode. Loading more than 6 communities here could cause timeouts, depending on how your networking is setup. ***< / p >
{% endif %}
2024-09-11 19:14:12 -04:00
{{ render_form(preload_form) }}
< / div >
< / div >
< hr / >
2023-12-17 00:12:49 +13:00
< div class = "row" >
< div class = "col" >
2024-04-14 20:05:40 +12:00
{% include 'admin/_nav.html' %}
2023-12-17 00:12:49 +13:00
< / div >
< / div >
2024-04-14 20:05:40 +12:00
< hr / >
2023-12-17 00:12:49 +13:00
{% endblock %}