aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 78a46964c4224f277e573c349526f55cc3485d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<html>
<head>
    <title>ODR-DabMux Monitoring</title>
    <meta http-equiv="refresh" content="15">
</head>
<body>
<h1>Statistics for ODR-DabMux running on '{{ name }}'</h1>
<table>
    <thead><td>Input Name</td><td>State</td></thead>
    {% for inp in inputs %}
        <tr><td><b>{{ inp.name }}:</b></td><td>
        {% if inp.state == "NoData" %}
            <img src="static/red.png" width="29" height="64" alt="No Date" />
            No Data
        {% elif inp.state == "Unstable" %}
            <img src="static/orange.png" width="29" height="64" alt="Unstable" />
            Unstable
        {% elif inp.state == "Silent" %}
            <img src="static/orange.png" width="29" height="64" alt="Unstable" />
            <img src="static/noaudio.png" width="60" height="30" alt="No audio" />
        {% elif inp.state == "Streaming" %}
            <img src="static/green.png" width="29" height="64" alt="Unstable" />
        {% else %}
            Unknown state {{ inp.state }} !
        {% endif %}
        </td></tr>
    {% endfor %}
</table>
<p>generated on {{ date }}</p>
</body>
</html>