-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (41 loc) · 1.12 KB
/
index.html
File metadata and controls
41 lines (41 loc) · 1.12 KB
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
<!DOCTYPE html>
{% autoescape true %}
<html>
<head>
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
</head>
<body>
<div class='nav'>
<div class='container'>
<ul>
<li><a href='/new_sensor.html'>New Sensor</a></li>
</ul>
<ul>
<li><a href="/connect">Sign Up</a></li>
<li><a href="#">Log In</a></li>
<li><a href="#">Help</a></li>
</ul>
</div>
</div>
<hr>
<div class='sensor-list'>
<div class='container'>
{% if sensors %}
{% for sensor in sensors %}
<li><a href='/sensor/{{sensor.name}}'> {{sensor.name}}</a></li>
<div class='sensor-info'>
<div class='container'>
<li>First Observation : {{sensor.first_observation_date}}</li>
<li>Last Observation : {{sensor.last_observation_date}}</li>
<li>Number of Observations : {{sensor.observation_count}}</li>
</div>
</div>
{%- endfor %}
{%else%}
<br>No Sensors found
{%endif%}
</div>
</div>
</body>
</html>
{% endautoescape %}