summaryrefslogtreecommitdiffstats
path: root/templates/base.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-05 14:17:27 -0600
committerAndrew Godwin2022-11-05 14:17:27 -0600
commitd77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 (patch)
treedd356a933b8179a22e5da6e938acd96a175ac0d6 /templates/base.html
downloadtakahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.gz
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.bz2
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.zip
Initial commit (users and statuses)
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..79a5e87
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>{% block title %}{% endblock %} - {{ config.site_name }}</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ {% load static %}
+ <link rel="stylesheet" href="{% static "css/style.css" %}" type="text/css" media="screen" />
+ <link rel="stylesheet" href="{% static "fonts/raleway/raleway.css" %}" type="text/css" />
+ <link rel="stylesheet" href="{% static "fonts/font_awesome/all.min.css" %}" type="text/css" />
+ {% block extra_head %}{% endblock %}
+</head>
+<body class="{% block body_class %}{% endblock %}">
+
+ <header>
+ <h1><a href="/">{{ config.site_name }}</a></h1>
+ <menu>
+ <li>
+ {% if user.is_authenticated %}
+ {{ user.email }}
+ {% else %}
+ <a href="/auth/login/">Login</a>
+ {% endif %}
+ </li>
+ </menu>
+ </header>
+
+ <main>
+ {% block content %}
+ {% endblock %}
+ </main>
+
+</body>
+</html>