From 614562bf2cf048b049af5304fead92a46f080d3e Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Mon, 11 Apr 2016 23:53:38 -0400 Subject: Initial Commit. Basic webapp that can save/display weather data --- templates/layout.html | 17 +++++++++++++++++ templates/show_entries.html | 23 +++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 templates/layout.html create mode 100644 templates/show_entries.html (limited to 'templates') diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..0f32195 --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,17 @@ + +Weather + +
+

Weather

+
+ {% if not session.logged_in %} + log in + {% else %} + log out + {% endif %} +
+ {% for message in get_flashed_messages() %} +
{{ message }}
+ {% endfor %} + {% block body %}{% endblock %} +
diff --git a/templates/show_entries.html b/templates/show_entries.html new file mode 100644 index 0000000..5d9ff1a --- /dev/null +++ b/templates/show_entries.html @@ -0,0 +1,23 @@ +{% extends "layout.html" %} +{% block body %} + {% if session.logged_in %} +
+
+
Temperature: +
+
Humidity: +
+
Pressure: +
+
+
+
+ {% endif %} + +{% endblock %} -- cgit v1.2.3