aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.html12
-rw-r--r--templates/show_entries.html19
2 files changed, 31 insertions, 0 deletions
diff --git a/templates/layout.html b/templates/layout.html
new file mode 100644
index 0000000..2a06690
--- /dev/null
+++ b/templates/layout.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<title>Weather</title>
+<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
+<div class=page>
+ <h1>Weather</h1>
+ <div class=metanav>
+ </div>
+ {% for message in get_flashed_messages() %}
+ <div class=flash>{{ message }}</div>
+ {% endfor %}
+ {% block body %}{% endblock %}
+</div>
diff --git a/templates/show_entries.html b/templates/show_entries.html
new file mode 100644
index 0000000..572f360
--- /dev/null
+++ b/templates/show_entries.html
@@ -0,0 +1,19 @@
+{% extends "layout.html" %}
+{% block body %}
+ <figure>
+ <embed type="image/svg+xml" src="/tgraph.svg" />
+ </figure>
+ <figure>
+ <embed type="image/svg+xml" src="/hgraph.svg" />
+ </figure>
+ <figure>
+ <embed type="image/svg+xml" src="/pgraph.svg" />
+ </figure>
+ <ul class=weather>
+ {% for entry in weather %}
+ <li><h2>{{ entry.date }}</h2>Temp: {{ entry.temperature }}, Humidity: {{ entry.humidity }}, Pressure: {{ entry.pressure }}
+ {% else %}
+ <li><em>No entries here so far</em>
+ {% endfor %}
+ </ul>
+{% endblock %}