From 7d43fb91c6196d7b2f31ff4e0f2629bbf4c94434 Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Sun, 20 Dec 2020 19:26:31 +0100 Subject: [PATCH] Add 'web' template options for 2 templates --- lokrez/templates/confismash/template.svg.j2 | 4 ++-- lokrez/templates/rebootlyon2020/template.svg.j2 | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lokrez/templates/confismash/template.svg.j2 b/lokrez/templates/confismash/template.svg.j2 index 914fcd0..795f58e 100644 --- a/lokrez/templates/confismash/template.svg.j2 +++ b/lokrez/templates/confismash/template.svg.j2 @@ -9,8 +9,8 @@ xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="508mm" - height="285.75mm" + width="{{ "100%" if "web" in options else "508mm" }}" + height="{{ "100%" if "web" in options else "285.75mm" }}" viewBox="0 0 508.00001 285.75" version="1.1" id="svg8" diff --git a/lokrez/templates/rebootlyon2020/template.svg.j2 b/lokrez/templates/rebootlyon2020/template.svg.j2 index 079e272..b760c69 100644 --- a/lokrez/templates/rebootlyon2020/template.svg.j2 +++ b/lokrez/templates/rebootlyon2020/template.svg.j2 @@ -18,8 +18,9 @@ id="svg8" version="1.1" viewBox="0 0 359.83334 449.79166" - height="449.79166mm" - width="359.83334mm"> + width="{{ "100%" if "web" in options else "359.83334" }}" + height="{{ "100%" if "web" in options else "449.79166mm" }}" + >