diff options
Diffstat (limited to 'snag/templates/dashboard/dashboard.html')
-rw-r--r-- | snag/templates/dashboard/dashboard.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/snag/templates/dashboard/dashboard.html b/snag/templates/dashboard/dashboard.html new file mode 100644 index 0000000..c061b66 --- /dev/null +++ b/snag/templates/dashboard/dashboard.html @@ -0,0 +1,43 @@ +{% extends 'layout.html' %} + +{% block headline %}{% block title %}Dashboard{% endblock %}{% endblock %} + +{% block content %} +<main> + {% if deviceList|length == 0 %} +Hmmm nothing seems to be logged yet + {% endif %} + {% for entry in deviceList %} + + <h2> {{ entry.name }} | {{ entry.location }} </h2> + <table> + <tr> + {% if entry.location != "status" %} + <td> + <figure> + <embed type="image/png" src="/graph/humidity-temperature.png?deviceId={{ entry.deviceId }}&type={{ entry.location}}" /> + </figure> + </td> + + <td> + <figure> + <embed type="image/png" src="/graph/pressure.png?deviceId={{ entry.deviceId }}&type={{ entry.location}}" /> + </figure> + </td> + {% else %} + <td> + <figure> + <embed type="image/png" src="/graph/battery.png?deviceId={{ entry.deviceId }}" /> + </figure> + </td> + {% endif %} + </tr> + + </table> + + {% endfor %} + +</main> +{% endblock %} + +{% block footer %} Best by: {{ generatedAt }} {% endblock %} |