summaryrefslogtreecommitdiffstats
path: root/gui/views
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-14 20:27:25 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-14 20:27:25 +0100
commita36150d2305e93de9d0f58cb48273ed9909cab05 (patch)
tree03f0b75c178d6de9b05b83ee8954f1e3d6b63573 /gui/views
parente5dd6e1775da4f6f1f4933fc8b8fe4dc0b5dc2bd (diff)
downloaddabmux-a36150d2305e93de9d0f58cb48273ed9909cab05.tar.gz
dabmux-a36150d2305e93de9d0f58cb48273ed9909cab05.tar.bz2
dabmux-a36150d2305e93de9d0f58cb48273ed9909cab05.zip
GUI: create a second page with a service table
Diffstat (limited to 'gui/views')
-rw-r--r--gui/views/index.tpl2
-rw-r--r--gui/views/services.tpl31
2 files changed, 32 insertions, 1 deletions
diff --git a/gui/views/index.tpl b/gui/views/index.tpl
index c847402..a73d6d2 100644
--- a/gui/views/index.tpl
+++ b/gui/views/index.tpl
@@ -12,7 +12,7 @@ body {
<h2>Services</h2>
<ul>
% for s in services:
- <li>{{s.name}}: <i>{{s.label}} ({{s.shortlabel}})</i> &mdash; id = {{s.srvid}}</li>
+ <li>{{s.name}}: <i>{{s.label}} ({{s.shortlabel}})</i> &mdash; id = {{s.id}}</li>
% end
</ul>
<h2>Subchannels</h2>
diff --git a/gui/views/services.tpl b/gui/views/services.tpl
new file mode 100644
index 0000000..7ca2f9f
--- /dev/null
+++ b/gui/views/services.tpl
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html><head>
+<title>ODR-DabMux Services</title>
+<style>
+body {
+ font-family: sans;
+}
+</style>
+</head>
+<body>
+ <h1>Services for {{version}}</h1>
+ <table>
+ <tr>
+ <th>name</th>
+ <th>id</th>
+ <th>label</th>
+ <th>pty</th>
+ <th>language</th>
+ </tr>
+ % for s in services:
+ <tr><td>{{s.name}}</td>
+ <td>{{s.id}}</td>
+ <td>{{s.label}} ({{s.shortlabel}})</td>
+ <td>{{s.pty}}</td>
+ <td>{{s.language}}</td>
+ </tr>
+ % end
+ </ul>
+</body>
+</html>
+