Adding views and schema.

This commit is contained in:
John Washam
2016-06-30 19:03:09 -07:00
parent 255001f40d
commit 4b1cf0afdb
8 changed files with 240 additions and 2 deletions

20
templates/layout.html Normal file
View File

@@ -0,0 +1,20 @@
<!doctype html>
<title>CS Flash Cards</title>
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
<div class=page>
<h1>CS Flash Cards</h1>
<div class=metanav>
{% if not session.logged_in %}
<a href="{{ url_for('login') }}">log in</a>
{% else %}
<a href="{{ url_for('cards') }}">cards</a>
&nbsp;
&nbsp;
<a href="{{ url_for('logout') }}">log out</a>
{% endif %}
</div>
{% for message in get_flashed_messages() %}
<div class=flash>{{ message }}</div>
{% endfor %}
{% block body %}{% endblock %}
</div>