Skip to content
Snippets Groups Projects
Commit 798d8653 authored by Travis Rivers's avatar Travis Rivers
Browse files

separate out templates

parent 366381d3
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ from __future__ import absolute_import, unicode_literals
import os
import flask
from . import data, login
from . import data
def create_app():
......@@ -12,7 +12,6 @@ def create_app():
app.config.update(os.environ)
# connect modules
login.init_app(app)
data.init_app(app)
# add default route
......
......@@ -10,8 +10,8 @@
</head>
<body>
<nav>
{% if current_user.is_authenticated %} Logged in as {{ current_user.email
}}
{% if current_user & if current_user.is_authenticated %} Logged in as {{
current_user.email }}
<a href="{{ url_for('login.logout') }}">Log Out</a>
{% else %}
<a href="{{ url_for('login.login') }}">Log In</a>
......
{% extends '_template.html' %} {% block header %}
{% block header %}
<link
rel="stylesheet"
type="text/css"
......
{% extends '_template.html' %}
{% block header %}
<h1>{% block title %}Index{% endblock %}</h1>
{% endblock %}
{% block content %}
{% endblock %} {% block content %}
<p>This is the default page, when logged out</p>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment