{% extends "app_home/base.html" %} {% load static %} {% load i18n %} {% block navbar_app %} {% include 'app_home/_sidebar.html' %} {% endblock %} {% block title %}

{% translate "Factory reset" %}

{% translate "The database was emptied and a fresh instance was provisioned from the builtin definitions." %}

{% endblock %} {% block content %} {% if report.errors %}

{% translate "The reset completed with errors:" %}

{% else %}
{% translate "Factory reset done." %}
{% endif %}
{% translate "All sessions were dropped. Sign in again to continue." %} {% translate "Sign in" %}
{% if report.operator.username %} {% if report.operator.restored %}
{% blocktranslate with username=report.operator.username %}Your account {{ username }} was recreated with the admin role — its email, groups and other roles are gone with the rest of the data.{% endblocktranslate %}
{% else %}
{% blocktranslate with username=report.operator.username %}Your account {{ username }} could NOT be restored. Sign in as the builtin admin account.{% endblocktranslate %}
{% endif %} {% endif %}
{% translate "Database" %}

{% translate "Rows deleted per table. Django accounts, content types and migrations were left untouched." %}

{% for table, count in report.deleted.items %} {% endfor %}
{% translate "Table" %} {% translate "Rows deleted" %}
{{ table }} {{ count }}
{% translate "Files" %}
{% for folder, count in report.files.items %} {% endfor %}
{% translate "Folder" %} {% translate "Files deleted" %}
{{ folder }} {{ count }}
{% translate "Provisioning" %}
{% translate "Database version" %} {{ report.db_version }}
{% translate "Code version" %} {{ CAVALIBA_VERSION }}
{% translate "Demo data" %} {% if report.demo %} {% blocktranslate with files=report.demo.files objects=report.demo.objects %}{{ files }} file(s), {{ objects }} object(s) loaded{% endblocktranslate %} {% else %} {% translate "not loaded" %} {% endif %}

{% translate "Admin tools" %}

{% endblock %}