{# Fragment: what "Lowercase all hostnames" would do. Loaded into the modal on the Data Quality page, so no master.html here. #}

{{ renamed|length }} host(s) would be renamed, {{ collisions|length }} skipped because the lowercase name is already taken, {{ archived }} of them are in the archive.

{% if not renamed and not collisions %}
No hostname carries uppercase letters — nothing to do.
{% endif %} {% if renamed %}
Would be renamed
{% for entry in renamed %} {% endfor %}
Current nameBecomesWhere
{{ entry.old }} {{ entry.new }} {% if entry.archived %} archived {% if archive_list_url %} show {% endif %} {% else %} host list {% endif %}
{% endif %} {% if collisions %}
Skipped — name already taken
{% for entry in collisions %} {% endfor %}
Current nameBlocked byWhere
{{ entry.old }} {{ entry.target }} {% if entry.target_archived %} archived host {% endif %} {% if entry.archived %} archived {% if archive_list_url %} show {% endif %} {% else %} host list {% endif %}

A hostname exists only once. Where the lowercase name is held by an archived host, delete or rename that archived entry first — then the rename goes through.

{% endif %}