<span {% if add_to_queue %}class="{{ label_tag }}"{% else %}title="Recursion"{% endif %}>
    {% if crawl_policy.recursion == CrawlPolicy.CRAWL_NEVER %}
      ⛔
    {% else %}
      ⚡
    {% endif %}
    {% if add_to_queue %}
        {% if crawl_policy.recursion == CrawlPolicy.CRAWL_ALL %}
            Recurse into matching URLs
            {% if crawl_policy.recursion_depth > 1 %}
            , {{ crawl_policy.recursion_depth }} level{{ crawl_policy.recursion_depth|pluralize }} depth otherwise</li>
            {% endif %}
        {% elif crawl_policy.recursion == CrawlPolicy.CRAWL_ON_DEPTH %}
            Crawl depending on depth
        {% else %}
            {{ urls|length|pluralize:"Only this URL,Only these URLs" }}
        {% endif %}
    {% else %}
        {% if crawl_policy.recursion == CrawlPolicy.CRAWL_ALL %}
            recurse all
            {% if crawl_policy.recursion_depth > 1 %}
            , {{ crawl_policy.recursion_depth }} level{{ crawl_policy.recursion_depth|pluralize }} depth otherwise</li>
            {% endif %}
        {% elif crawl_policy.recursion == CrawlPolicy.CRAWL_ON_DEPTH %}
            recursion limited
        {% else %}
            never recurse
        {% endif %}
    {% endif %}
</span>

<span class="{{ label_tag }}"{% if not add_to_queue %} title="Browser"{% endif %}>
    🌐 {% if add_to_queue %}with{% endif %}
    {% if crawl_policy.default_browse_mode == DomainSetting.BROWSE_DETECT %}
        {{ settings.SOSSE_DEFAULT_BROWSER|title }}
        {% if add_to_queue %}
            if necessary
        {% else %}
            / Request
        {% endif %}
    {% elif crawl_policy.default_browse_mode == DomainSetting.BROWSE_CHROMIUM %}
        Chromium
    {% elif crawl_policy.default_browse_mode == DomainSetting.BROWSE_FIREFOX %}
        Firefox
    {% else %}
        Python Request
    {% endif %}
</span>

<span class="{{ label_tag }}"{% if not add_to_queue %} title="Recurrence"{% endif %}>
    🕑
    {% if crawl_policy.recrawl_freq == CrawlPolicy.RECRAWL_FREQ_NONE %}
        only once
    {% elif crawl_policy.recrawl_freq == CrawlPolicy.RECRAWL_FREQ_CONSTANT %}
        {% if add_to_queue %}
            every {{ recrawl_every }}
        {% else %}
            constant
        {% endif %}
    {% else %}
        {% if add_to_queue %}
            from every {{ recrawl_min }} to every {{ recrawl_max }}
        {% else %}
            adaptive
        {% endif %}
    {% endif %}
</span>

{% if crawl_policy.take_screenshots %}
    <span class="{{ label_tag }}">
        {% if add_to_queue %}
            📷 take screenshots
        {% else %}
            📷 screenshots
        {% endif %}
    </span>
{% endif %}

{% if crawl_policy.snapshot_html %}
    <span class="{{ label_tag }}">
        {% if add_to_queue %}
            🔖 HTML archive
        {% else %}
            🔖 archive
        {% endif %}
    </span>
{% endif %}

{% with webhooks_count=crawl_policy.webhooks.count %}
    {% if webhooks_count %}
        <span class="{{ label_tag }}">
          📡 {{ webhooks_count }} webhook{{ webhooks_count|pluralize }}
        </span>
    {% endif %}
{% endwith %}
