diff options
author | Maxime <maxime.m62@gmail.com> | 2017-04-07 21:56:14 +0200 |
---|---|---|
committer | Maxime <maxime.m62@gmail.com> | 2017-04-07 21:56:14 +0200 |
commit | 1abd428b36d78ae6c53337b610dfc12dcb7c1ef6 (patch) | |
tree | f780f0bd8eac3b9ef7a641195c38dc63ee2ec9b5 /src/Wallabag/CoreBundle/Resources/views/themes/common | |
parent | 656395fde63fe566bf44ee63b1344efdd8c2e653 (diff) | |
download | wallabag-1abd428b36d78ae6c53337b610dfc12dcb7c1ef6.tar.gz wallabag-1abd428b36d78ae6c53337b610dfc12dcb7c1ef6.tar.zst wallabag-1abd428b36d78ae6c53337b610dfc12dcb7c1ef6.zip |
Add QRCode in Api clients management for each clients
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig index 3430c0d4..99f8ed29 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig | |||
@@ -52,6 +52,12 @@ | |||
52 | {{ 'developer.remove.warn_message_1'|trans({'%name%': client.name }) }}<br/> | 52 | {{ 'developer.remove.warn_message_1'|trans({'%name%': client.name }) }}<br/> |
53 | {{ 'developer.remove.warn_message_2'|trans({'%name%': client.name }) }}<br/> | 53 | {{ 'developer.remove.warn_message_2'|trans({'%name%': client.name }) }}<br/> |
54 | <a class="waves-effect waves-light red btn" href="{{ path('developer_delete_client', {'id': client.id}) }}">{{ 'developer.remove.action'|trans({'%name%': client.name }) }}</a> | 54 | <a class="waves-effect waves-light red btn" href="{{ path('developer_delete_client', {'id': client.id}) }}">{{ 'developer.remove.action'|trans({'%name%': client.name }) }}</a> |
55 | <a class="waves-effect waves-light btn" href="">{{ 'developer.existing_clients.show_qrcode_iphone'|trans }}</a> | ||
56 | <img id="iphoneQrcode{{ client.id }}" /> | ||
57 | <script> | ||
58 | const imgBase64 = jrQrcode.getQrBase64('wallabagv2://{{ app.user.username }}%%{{ wallabag_url }}%%{{ client.id }}_{{ client.randomId }}%%{{ client.secret }}'); | ||
59 | document.getElementById('iphoneQrcode{{ client.id }}').src = imgBase64; | ||
60 | </script> | ||
55 | </p> | 61 | </p> |
56 | </div> | 62 | </div> |
57 | </li> | 63 | </li> |