Added translations and baggy part

This commit is contained in:
Nicolas Lœuillet
2016-10-31 16:48:34 +01:00
parent e61ee56031
commit 3b81212674
16 changed files with 26 additions and 5 deletions

View File

@ -54,6 +54,16 @@
<a href="https://getpocket.com/developer/docs/authentication">https://getpocket.com/developer/docs/authentication</a>
</p>
</div>
<div class="row">
<h3>{{ 'config.form_settings.android_configuration'|trans }}</h3>
<a href="wallabag://{{ app.user.username }}@{{ wallabag_url }}" >Touch here to prefill your Android application</a>
<img id="androidQrcode" />
<script>
const imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}');
document.getElementById('androidQrcode').src=imgBase64;
</script>
</div>
</fieldset>
{{ form_rest(form.config) }}

View File

@ -73,12 +73,12 @@
<div class="row">
<div class="input-field col s12">
<h5>Configure your Android application</h5>
<h5>{{ 'config.form_settings.android_configuration'|trans }}</h5>
<a href="wallabag://{{ app.user.username }}@{{ wallabag_url }}" class="waves-effect waves-light btn hide-on-large-only">Touch here to prefill your Android application</a>
<img id="androidQrcode" class="hide-on-med-and-down" />
</div>
<script>
var imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}');
const imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}');
document.getElementById('androidQrcode').src=imgBase64;
</script>
</div>