diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | 10 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index 455d0295..dde9411f 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | |||
@@ -54,6 +54,16 @@ | |||
54 | <a href="https://getpocket.com/developer/docs/authentication">https://getpocket.com/developer/docs/authentication</a> | 54 | <a href="https://getpocket.com/developer/docs/authentication">https://getpocket.com/developer/docs/authentication</a> |
55 | </p> | 55 | </p> |
56 | </div> | 56 | </div> |
57 | |||
58 | <div class="row"> | ||
59 | <h3>{{ 'config.form_settings.android_configuration'|trans }}</h3> | ||
60 | <a href="wallabag://{{ app.user.username }}@{{ wallabag_url }}" >Touch here to prefill your Android application</a> | ||
61 | <img id="androidQrcode" /> | ||
62 | <script> | ||
63 | const imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}'); | ||
64 | document.getElementById('androidQrcode').src=imgBase64; | ||
65 | </script> | ||
66 | </div> | ||
57 | </fieldset> | 67 | </fieldset> |
58 | 68 | ||
59 | {{ form_rest(form.config) }} | 69 | {{ form_rest(form.config) }} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 3fbb49ea..807c9bdc 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | |||
@@ -73,12 +73,12 @@ | |||
73 | 73 | ||
74 | <div class="row"> | 74 | <div class="row"> |
75 | <div class="input-field col s12"> | 75 | <div class="input-field col s12"> |
76 | <h5>Configure your Android application</h5> | 76 | <h5>{{ 'config.form_settings.android_configuration'|trans }}</h5> |
77 | <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> | 77 | <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> |
78 | <img id="androidQrcode" class="hide-on-med-and-down" /> | 78 | <img id="androidQrcode" class="hide-on-med-and-down" /> |
79 | </div> | 79 | </div> |
80 | <script> | 80 | <script> |
81 | var imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}'); | 81 | const imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}'); |
82 | document.getElementById('androidQrcode').src=imgBase64; | 82 | document.getElementById('androidQrcode').src=imgBase64; |
83 | </script> | 83 | </script> |
84 | </div> | 84 | </div> |