Adding views and schema.
This commit is contained in:
20
templates/layout.html
Normal file
20
templates/layout.html
Normal 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>
|
||||
|
||||
|
||||
<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>
|
||||
Reference in New Issue
Block a user