aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 04bafad93731e8c8421ba352dd6a70ff5a6c7143 (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
34
35
36
37
38
39
40
41
42
<!doctype html>
<html>
<head>
    <title>ODR-DabMux Monitoring</title>
    <link rel="stylesheet" href="/static/monit.css" type="text/css" />
    <meta http-equiv="refresh" content="45">
</head>
<body>
<h1>Statistics for ODR-DabMux running on '{{ name }}'</h1>
<div class="gridcontainer">
<ul class="statusgrid">
    {% for inp in inputs %}
        <li>
        <b>{{ inp.name }}</b>
            <br />
        {% if inp.state == "NoData" %}
            <img src="static/red.png" width="29" height="64" alt="No Date" />
            <br />
            No Data
        {% elif inp.state == "Unstable" %}
            <img src="static/orange.png" width="29" height="64" alt="Unstable" />
            <br />
            Unstable
        {% elif inp.state == "Silent" %}
            <img src="static/orange.png" width="29" height="64" alt="Unstable" />
            <br />
            <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 %}
        </li>
    {% endfor %}
</ul>
</div>
<div class="footer">
    <p>generated on {{ date }}</p>
</div>
</body>
</html>