{% extends "admin/base.html" %} {% load static %} {% block head %} {{ block.super }} {# Token used by Javscript code to make ``fetch`` requests #} {% endblock %} {% block extrahead %} {{ blocksuper }} {% endblock %} {% block breadcrumbs %} Admin > Crawl policies > Add to queue {% endblock %} {% block title %} {{ block.super }} - Add to queue {% endblock %} {% block content_title %} {{ block.super }} - Add to queue {% endblock %}} {% block content %} {% include "se/components/modal.html" with id="tags" title=tags_edit_title %}
{% csrf_token %}

{{ form.urls.label }}

{{ form.urls.errors }} {{ form.urls }} {% if form.urls.help_text %}

{{ form.urls.help_text|safe }}

{% endif %} {% if crawl_policies %}

Crawl polic{{ crawl_policies|length|pluralize:"y,ies" }}

{% if form.fields.crawl_policy_choice.choices %}

{% include "admin/crawl_policy_desc.html" with add_to_queue=True label_tag="label_tag" urls=urls %} 📝 Edit

{{ form.crawl_policy_choice }}

{{ form.tags }}

Create a new policy

{% elif crawl_policies|length == 1 %}

{{ urls|length|pluralize:"This URL,These URLs" }} will be crawled with policy {{ crawl_policy }}:

{% include "admin/crawl_policy_desc.html" with add_to_queue=True label_tag="label_tag" urls=urls %}

Create a new policy

{% else %}

These URLs will be crawled with policies:

{% endif %} {% if crawl_policy.recursion == CrawlPolicy.CRAWL_ON_DEPTH or settings.SOSSE_BROWSABLE_HOME %}

Parameters

{% endif %} {% if crawl_policy.recursion == CrawlPolicy.CRAWL_ON_DEPTH %} {{ form.recursion_depth.errors }} {{ form.recursion_depth.label_tag }} {{ form.recursion_depth }} {% if form.recursion_depth.help_text %}

{{ form.recursion_depth.help_text|safe }}

{% endif %} {% endif %} {% if settings.SOSSE_BROWSABLE_HOME %} {{ form.show_on_homepage.errors }} {{ form.show_on_homepage }} {% if form.show_on_homepage.help_text %}

{{ form.show_on_homepage.help_text|safe }}

{% endif %} {% endif %}

{% else %} {% endif %}
{% endblock %}