From b6376fb8f1379bebd3241f29e356eb0076adfcbd Mon Sep 17 00:00:00 2001 From: Robin ALEXANDER Date: Sat, 5 Feb 2022 22:19:42 +0100 Subject: Switch to Jinja2 from SimpleTemplate --- gui/views/index.tpl | 22 +++++++++++----------- gui/views/rcparam.tpl | 18 +++++++++--------- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'gui/views') diff --git a/gui/views/index.tpl b/gui/views/index.tpl index a554095..7d7f886 100644 --- a/gui/views/index.tpl +++ b/gui/views/index.tpl @@ -58,14 +58,14 @@ Label Short label - % for s in services: + {% for s in services %} {{s.name}} {{s.id}} {{s.label}} {{s.shortlabel}} - % end + {% endfor %}
@@ -77,14 +77,14 @@ Input file Bit rate (Kbps) - % for s in subchannels: + {% for s in subchannels %} {{s.name}} {{s.type}} {{s.inputfile}} {{s.bitrate}} - % end + {% endfor %}
@@ -98,7 +98,7 @@ Sub-channel Fig type - % for s in components: + {% for s in components %} {{s.name}} {{s.label}} @@ -107,22 +107,22 @@ {{s.subchannel}} {{s.figtype}} - % end + {% endfor %}


diff --git a/gui/views/rcparam.tpl b/gui/views/rcparam.tpl index c415d7a..369e8c9 100644 --- a/gui/views/rcparam.tpl +++ b/gui/views/rcparam.tpl @@ -14,21 +14,21 @@

- % if (len(list) == 0): + {% if not list %} - - % else: + + {% else %} - % end + {% endif %}

-- cgit v1.2.3