CurrentValues.html 1.55 KB
Newer Older
1

Alan Mitchell's avatar
Alan Mitchell committed
2
<h2 id="report_title">{{ report_title }}</h2>
3
<div class="d-flex justify-content-center">
4 5
    <div class="table-responsive">
        <table class="table table-sm mt-3">
6 7 8 9 10
            <thead><tr>
                <th class="text-center">Sensor</th>
                <th class="text-center">Value</th>
                <th class="text-center">Unit</th>
                <th class="text-center">When</th>
11
                <th class="text-center">ID</th>
12 13 14
            </tr></thead>
            <tbody>
            {% for group in sensor_list %}
15
                <tr class="group-row"><th colspan="5">{{ group.0 }}</th></tr>
16
                {% for sensor in group.1 %}
17
                    <tr><td class="pl-4"><a href="{{ sensor.href }}" data-toggle="tooltip" data-html="true" title="{{ sensor.notes | safe }}" > {{ sensor.title }} </a></td>
18
                        {% if sensor.alerts %}
19
                        <td class="text-right" data-toggle="tooltip" data-html="true" title="{{ sensor.alerts | safe }}" style="background-color:#FF8C8C;">
20 21 22 23 24 25
                        {% else %}
                        <td class="text-right">
                        {% endif %}
                            {{ sensor.cur_value }}</td>
                        <td>{{ sensor.unit }}</td>
                        <td>{{ sensor.minutes_ago }} minutes ago</td>
26
                        <td class="bmon-sensor-id">{{ sensor.sensor_id }}</td>
27 28 29 30 31 32 33 34
                    </tr>
                {% endfor %}
            {% endfor %}
            </tbody>
        </table>
    </div>
</div>

35
<h3>{{ footer_title }}</h3>
36
{{ footer | safe }}