aboutsummaryrefslogtreecommitdiffstats
path: root/gui/views/index.tpl
diff options
context:
space:
mode:
authorRobin ALEXANDER <colisee@hotmail.com>2022-02-05 22:19:42 +0100
committerRobin ALEXANDER <colisee@hotmail.com>2022-02-05 22:19:42 +0100
commitb6376fb8f1379bebd3241f29e356eb0076adfcbd (patch)
tree59cd1047c817bdb9ac92e16d262fe74597c1123f /gui/views/index.tpl
parent852665779c24880e97c1a560e8f19a11f2ee28a3 (diff)
downloaddabmux-b6376fb8f1379bebd3241f29e356eb0076adfcbd.tar.gz
dabmux-b6376fb8f1379bebd3241f29e356eb0076adfcbd.tar.bz2
dabmux-b6376fb8f1379bebd3241f29e356eb0076adfcbd.zip
Switch to Jinja2 from SimpleTemplate
Diffstat (limited to 'gui/views/index.tpl')
-rw-r--r--gui/views/index.tpl22
1 files changed, 11 insertions, 11 deletions
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 @@
<th>Label</th>
<th>Short label</th>
</tr>
- % for s in services:
+ {% for s in services %}
<tr>
<td>{{s.name}}</td>
<td>{{s.id}}</td>
<td>{{s.label}}</td>
<td>{{s.shortlabel}}</td>
</tr>
- % end
+ {% endfor %}
</table>
</div>
<div id="subchannels" class="w3-responsive w3-card-4">
@@ -77,14 +77,14 @@
<th>Input file</th>
<th>Bit rate (Kbps)</th>
</tr>
- % for s in subchannels:
+ {% for s in subchannels %}
<tr>
<td>{{s.name}}</td>
<td>{{s.type}}</td>
<td>{{s.inputfile}}</td>
<td>{{s.bitrate}}</td>
</tr>
- % end
+ {% endfor %}
</table>
</div>
<div id="components" class="w3-responsive w3-card-4">
@@ -98,7 +98,7 @@
<th>Sub-channel</th>
<th>Fig type</th>
</tr>
- % for s in components:
+ {% for s in components %}
<tr>
<td>{{s.name}}</td>
<td>{{s.label}}</td>
@@ -107,22 +107,22 @@
<td>{{s.subchannel}}</td>
<td>{{s.figtype}}</td>
</tr>
- % end
+ {% endfor %}
</table>
</div>
<div id="rcmodules" class="w3-responsive w3-card-4">
<br /><br />
<ul class="w3-ul">
<li class="w3-blue-grey"><b>RC Modules</b></li>
- % for m in rcmodules:
+ {% for m in rcmodules %}
<li class="w3-light-grey"><b>{{m.name}}</b>
<ul class="w3-ul">
- % for p in m.parameters:
- <li class="w3-white"><a href="/rc/{{m.name}}/{{p.param}}" class="w3-hover-blue-grey">{{p.param}}</a> : {{p.value}}</li>
- % end
+ {% for p in m.parameters %}
+ <li class="w3-white"><a href="/rc/{{m.name}}/{{p.param.decode()}}" class="w3-hover-blue-grey">{{p.param.decode()}}</a> : {{p.value.decode()}}</li>
+ {% endfor %}
</ul>
</li>
- % end
+ {% endfor %}
</ul>
</div>
</div>