{% load humanize i18n hq %} {% comment %} The whole plan, not a count: a number says something is wrong without saying what, and this is the page you would open to find out. {% endcomment %}

{% hq_icon "layers" %} {% translate "Migrations" %}

{% translate "What this database still owes the code running against it" %}

{% if migrations is None %}

{% hq_icon "info" %} {% translate "The migration plan could not be read." %}

{% elif migrations %}
    {% for migration in migrations %}
  1. {{ migration.app }} {{ migration.name }}
  2. {% endfor %}

{% hq_icon "triangle-alert" %} {% blocktranslate count counter=migrations|length %} One migration is waiting — the code is running against a schema it does not expect. {% plural %} {{ counter }} migrations are waiting — the code is running against a schema it does not expect. {% endblocktranslate %}

{% else %}

{% hq_icon "check" %} {% translate "Everything applied." %}

{% endif %}