]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/common/Developer/index.html.twig
Add QRCode in Api clients management for each clients
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / common / Developer / index.html.twig
index 3430c0d4fbba61d92534d0d706eb9fb93fed23d9..99f8ed2965f01681972c3d4947caca6f7f620944 100644 (file)
                                         {{ 'developer.remove.warn_message_1'|trans({'%name%': client.name }) }}<br/>
                                         {{ 'developer.remove.warn_message_2'|trans({'%name%': client.name }) }}<br/>
                                         <a class="waves-effect waves-light red btn" href="{{ path('developer_delete_client', {'id': client.id}) }}">{{ 'developer.remove.action'|trans({'%name%': client.name }) }}</a>
+                                        <a class="waves-effect waves-light btn" href="">{{ 'developer.existing_clients.show_qrcode_iphone'|trans }}</a>
+                                        <img id="iphoneQrcode{{ client.id }}" />
+                                        <script>
+                                            const imgBase64 = jrQrcode.getQrBase64('wallabagv2://{{ app.user.username }}%%{{ wallabag_url }}%%{{ client.id }}_{{ client.randomId }}%%{{ client.secret }}');
+                                            document.getElementById('iphoneQrcode{{ client.id }}').src = imgBase64;
+                                        </script>
                                     </p>
                                 </div>
                             </li>