{% extends "layouts/auth.html" %} {% block title %}{{_("Restore from a Backup")}} | {{_('Setup')}}{% endblock %} {% block content %} {% if result.configured or result.restored %} {{ mailpile('http/redirect', U('/')) }} {% else %}
{{ csrf_field|safe }}

{% if result.metadata %} {{_("Backup Archive is OK")}} {% else %} {{_("Restore from a Backup")}} {% endif %}

{% if result.metadata %}

{{_("This backup was created by Mailpile version {ver} on {date}." ).format(ver=result.metadata.mailpile_version, date=result.metadata.backup_date) }}

{{_("Restore encryption keys to shared GnuPG keychain")}}
{{_("Restore encryption keys to Mailpile-only keychain")}}
{{_("Do not restore GnuPG/PGP encryption keys")}}
{{_("Keep default Operating System settings (override backup)")}}

{{_("Enter your Mailpile Password to restore this configuration.")}}

{% else %}

{{_("You can restore a previous Mailpile configuration (keys, tags, etc.), provided you have a Mailpile Backup Archive available.")}} {# FIXME: Make this work! {{_("Backup archives can be uploaded manually, or automatically over WiFi if you have been using the Mailpile mobile web-app on another device.")}} #}

{# FIXME: Make this work!       #}

{{_("Please upload your Mailpile Backup Archive to continue.")}}
({{_("It should have a name similar to: ")}} Mailpile_Backup_2017-01-01.zip)

{# FIXME: Make this work!
  1. Connect your laptop and mobile device to the same WiFi network
  2. Choose RESTORE from your Mobile Mailpile App
  3. Enter the following details into the Mobile Restortion form

... {{_("loading")}} ...

#} {% endif %}
{{_("Back to Setup")}} {% endif %} {% endblock %}