{% extends 'pages/_install_base.html' %}
{% load i18n %}

{% block pagetitle %}
    {% trans "Install on Android" %}
{% endblock %}

{% block wireguard_setup %}
<ol>
    <li>
        {% blocktrans trimmed with url="https://play.google.com/store/apps/details?id=com.wireguard.android" %}
            Install the <a href="{{url}}">WireGuard app on the Play Store</a>.
        {% endblocktrans %}
        <br />
        {% blocktrans trimmed with url="https://f-droid.org/en/packages/com.wireguard.android/" %}
            It is also available on <a href="{{url}}">F-Droid</a> if you prefer.
        {% endblocktrans %}
    </li>
    <li>
        {% blocktrans trimmed %}
            Create a new WireGuard key in
            <a href="/account/wireguard">your account</a> and display its QR code.
        {% endblocktrans %}
        <br />
        {% trans "You need one for each device that you want to associate with your account."%}
    </li>
    <li>
        {% trans "Import the configuration in WireGuard by opening the app and scanning the QR code."%}
    </li>
    <li>
        {% trans "Activate the newly imported configuration in WireGuard."%}<br />
        {% trans "You can check your IP address by refreshing this page (or opening it on the device) and looking at the bottom."%}
    </li>
</ol>
{% endblock %}

{% block openvpn_setup %}
<ol>
    <li>
        {% blocktrans trimmed with url="https://play.google.com/store/apps/details?id=de.blinkt.openvpn" %}
            First, install <a href="{{url}}">Arne Schwabe's OpenVPN for Android</a>.
            It is the most frequently updated and secure OpenVPN client for Android to our knowledge.
        {% endblocktrans %}
    </li>
    <li>
        {% blocktrans trimmed %}
            Download the .ovpn file you need in <a href="/account/config">your account</a> and save it
            somewhere on your Android device.
        {% endblocktrans %}
    </li>
    <li>
        {% trans "Open the OpenVPN for Android application and import the .ovpn file." %}<br />
        {% trans "It will create a new profile from the configuration file." %}
    </li>
    <li>
        <em>{% trans "(Optional) Save your username and password:" %}</em><br />
        {% blocktrans trimmed %}
            Edit the imported profile and set your username and password if you do not
            want to be asked every time.
        {% endblocktrans %}
    </li>
    <li>
        {% blocktrans trimmed %}
            You can now connect to that profile.<br />
            It will show the log while trying to connect.
            If it fails, you can use the menu here to send the log by email
            to <em>support at ccrypto.org</em> or copy it in a support ticket.
        {% endblocktrans %}
    </li>
</ol>
{% endblock %}
