{% extends 'settings/layout.html' %} {% load humanize %} {% load i18n %} {% load utilities %} {% block title %}{% trans "Link Domains" %}{% endblock %} {% block header %}{% trans "Link Domains" %}{% endblock %} {% block panel %}

{% trans "Link domains must be approved before they are shown on book pages. Please make sure that the domains are not hosting spam, malicious code, or deceptive links before approving." %}

{% for domain in domains %} {% join "domain" domain.id as domain_modal %}

{{ domain.name }} ({{ domain.domain }})

{% trans "View links" %} ({{ domain.links.count }})

{% for link in domain.links.all|slice:10 %} {% endfor %}
{% trans "URL" %} {% trans "Filetype" %} {% trans "Book" %}
{{ link.url }} {% if link.filelink.filetype %} {{ link.filelink.filetype }} {% endif %} {% if link.filelink.filetype %} {% with book=link.filelink.book %} {% include "snippets/book_titleby.html" with book=book %} {% endwith %} {% endif %}
{% include "settings/link_domains/edit_domain_modal.html" with domain=domain id=domain_modal %}
{% if status != "approved" %}
{% csrf_token %}
{% endif %} {% if status != "blocked" %}
{% csrf_token %}
{% endif %}
{% endfor %} {% if not domains.exists %} {% if status == "approved" %} {% trans "No domains currently approved" %} {% elif status == "pending" %} {% trans "No domains currently pending" %} {% else %} {% trans "No domains currently blocked" %} {% endif %} {% endif %}
{% endblock %}