summaryrefslogtreecommitdiffstats
path: root/gui/views
diff options
context:
space:
mode:
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>
+