Add deltachat credentials page with QR code, update translation strings
This commit is contained in:
parent
585458986f
commit
eeb387d694
6 changed files with 147 additions and 59 deletions
24
app/templates/deltachat_creds.html
Normal file
24
app/templates/deltachat_creds.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title is-large butter-title">{{ _('Secure Messenger Account') }}</h1>
|
||||
|
||||
|
||||
<div class="block">
|
||||
<div class="block">
|
||||
<p>{{ _('Scan the following QR code with a device where DeltaChat is installed:') }}</p>
|
||||
</div>
|
||||
<img src="{{ base64img }}"/>
|
||||
</div>
|
||||
<div class="block">
|
||||
<div class="block"><p class="">{{ _('If your device does not have a camera, select "Create new profile" in DeltaChat, choose "Use Other Server" and find "Paste from clipboard", to paste the following link') }}:</p></div>
|
||||
<pre>{{ dclink}}</pre>
|
||||
</div>
|
||||
|
||||
<div class="block"></div>
|
||||
<form action="{{ url_for('deltachat_credentials') }}" method="post">
|
||||
<button type="submit" class="button is-link is-fullwidth block">
|
||||
<p>{{ _("Generate new credentials") }} </p>
|
||||
</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
@ -4,14 +4,14 @@
|
|||
<h1 class="title is-large butter-title">{{ _('Secure Messenger') }}</h1>
|
||||
|
||||
<div class="block">
|
||||
<p> {{ _("To use secure messaging, install Delta Chat and then return to this page to create your local offline account.")}}</p>
|
||||
<p> {{ _("To use secure messaging, install Delta Chat and then create your local offline account.")}}</p>
|
||||
</div>
|
||||
<a href="{{ url_for('static', filename='DeltaChat_2.35.0_APKPure.apk') }}"><button class="button is-link is-fullwidth block">
|
||||
<p>{{ _("Step 1") }}<br> {{ _("Download and install") }}</p>
|
||||
</button>
|
||||
</a>
|
||||
<div class="block"></div>
|
||||
<form action="{{ url_for('generate_random_deltachat_credentials') }}" method="post">
|
||||
<form action="{{ url_for('deltachat_credentials') }}" method="post">
|
||||
<button type="submit" class="button is-link is-fullwidth block">
|
||||
<p>{{ _("Step 2") }} <br> {{ _("Create offline account") }} </p>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue