Initial commit
This commit is contained in:
28
templates/history.html
Normal file
28
templates/history.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Historia pogody - {{ city }}</title>
|
||||
<style>
|
||||
body { font-family: Arial; padding: 20px; }
|
||||
table { border-collapse: collapse; width: 100%; }
|
||||
th, td { padding: 10px; border: 1px solid #ddd; text-align: left; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Historia pogody – {{ city }}</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Data</th>
|
||||
<th>Temperatura (°C)</th>
|
||||
<th>Wiatr (m/s)</th>
|
||||
</tr>
|
||||
{% for r in records %}
|
||||
<tr>
|
||||
<td>{{ r.time.strftime('%Y-%m-%d %H:%M') }}</td>
|
||||
<td>{{ r.temperature }}</td>
|
||||
<td>{{ r.windspeed }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user