diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.html | 5 | ||||
-rw-r--r-- | templates/show_entries.html | 14 |
2 files changed, 1 insertions, 18 deletions
diff --git a/templates/layout.html b/templates/layout.html index 0f32195..2a06690 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -4,11 +4,6 @@ <div class=page> <h1>Weather</h1> <div class=metanav> - {% if not session.logged_in %} - <a href="{{ url_for('login') }}">log in</a> - {% else %} - <a href="{{ url_for('logout') }}">log out</a> - {% endif %} </div> {% for message in get_flashed_messages() %} <div class=flash>{{ message }}</div> diff --git a/templates/show_entries.html b/templates/show_entries.html index 5d9ff1a..1f18d68 100644 --- a/templates/show_entries.html +++ b/templates/show_entries.html @@ -1,18 +1,6 @@ {% extends "layout.html" %} {% block body %} - {% if session.logged_in %} - <form action="{{ url_for('add_entry') }}" method=post class=add-entry> - <dl> - <dt>Temperature: - <dd><input type=number size=30 name=temperature> - <dt>Humidity: - <dd><input type=number size=30 name=humidity> - <dt>Pressure: - <dd><input type=number size=30 name=pressure> - <dd><input type=submit value=Submit> - </dl> - </form> - {% endif %} + {{ wgraph.render()|safe }} <ul class=weather> {% for entry in weather %} <li><h2>{{ entry.date }}</h2>Temp: {{ entry.temperature }}, Humidity: {{ entry.humidity }}, Pressure: {{ entry.pressure }} |