Added compact data retrieval method to avoid unnecessary data transmission/plotting.
[smonitor.git] / monitor / www_templates / var.html
blob243a0a95c3c4aee30640b2716a6898e79dc4192b
1 {% extends "base.html" %}
2 {% block body %}
3 {% if not filename %}
4 <h1>Empty dataset. Check varname</h1>
5 {% else %}
6 <table>
7 <tr>
8 <td><img src="static/{{filename}}"></img></td>
9 <td>
10 <p>Latest values collected were:</p>
11 <ul>
12 {% for item in items %}
13 <li>[{{item.hostname}}] At <strong>{{item.value.timestamp|timestampformat }}</strong> was <strong>{{ item.value.value }}</strong></li>
14 {% endfor %}
15 </ul>
16 </td>
17 </tr>
18 </table>
19 {% endif %}
20 {% endblock body %}