From 8b8b2979a395c3fc88e76cd3cc8bbd6f737d49ff Mon Sep 17 00:00:00 2001 From: Florian Dagner Date: Sat, 13 Jul 2024 10:21:17 +0200 Subject: [PATCH] MBS-9118: Button added that opens the QR code,code style --- templates/qr.mustache | 54 +++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/templates/qr.mustache b/templates/qr.mustache index f4df2f4..a9d01e4 100644 --- a/templates/qr.mustache +++ b/templates/qr.mustache @@ -47,19 +47,19 @@ {{#qrurl}} {{/qrurl}} -
- {{^qrcodecontent}} - {{#str}} nocontent, block_qr {{/str}} - {{/qrcodecontent}} -
+
+ {{^qrcodecontent}} + {{#str}} nocontent, block_qr {{/str}} + {{/qrcodecontent}} +
{{#qrurl}}
{{/qrurl}} -
- -
+
+ +

{{^calendar}}

{{description}}

@@ -108,15 +108,15 @@ {{/wifissid}} {{#fullview}} - {{#configshortlink}} -

- - - {{#str}} - urlshortlabel, block_qr - {{/str}} - -

+{{#configshortlink}} +

+ + + {{#str}} + urlshortlabel, block_qr + {{/str}} + +

{{/configshortlink}} {{/fullview}}
@@ -125,14 +125,14 @@ {{#js}} if (typeof QRCode !== 'undefined') { - // Configuration for QR Code - let config{{id}} = { - content: "{{{qrcodecontent}}}", - color: "#000000", - background: "#ffffff", - ecl: "M", // Error correction level (L, M, H, Q). - container: "svg-viewbox", // Responsive use. - join: true // Crisp rendering and 4-5x reduced file size. + // Configuration for QR Code + let config{{id}} = { + content: "{{{qrcodecontent}}}", + color: "#000000", + background: "#ffffff", + ecl: "M", // Error correction level (L, M, H, Q). + container: "svg-viewbox", // Responsive use. + join: true // Crisp rendering and 4-5x reduced file size. }; let qrcode{{id}} = new QRCode(config{{id}});