summaryrefslogtreecommitdiff
path: root/sw/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'sw/templates/base.html')
-rw-r--r--sw/templates/base.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/sw/templates/base.html b/sw/templates/base.html
new file mode 100644
index 0000000..4f2acf1
--- /dev/null
+++ b/sw/templates/base.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<title>{% block title %}{% endblock %}</title>
+<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
+<nav>
+ <ul>
+ {% if g.user %}
+ <li><span>{{ g.user['username'] }}</span></li>
+ <li><a href="{{ url_for('auth.logout') }}">Log Out</a></li>
+ {% else %}
+ <li><a href="{{ url_for('auth.register') }}">Register</a></li>
+ <li><a href="{{ url_for('auth.login') }}">Log In</a></li>
+ {% endif %}
+ </ul>
+</nav>
+<section class="content">
+ <header>
+ {% block header %}{% endblock %}
+ </header>
+ {% block content %}{% endblock %}
+</section>