blob: 1802ee50d0b8fee1e3515c30709e1b812186a5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{# BASED? BASED ON WHAT? #}
<!DOCTYPE html>
<html>
<head>
<title>{%block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<nav>
<p style="font-family: monospace;"><b>apio</b><i>forum</i>™</p>
<form class="search-form" action="/search">
<input type="search" placeholder="query" name="q">
<input type="submit" value="search">
</form>
<div class="links">
<p><a href="{{url_for('index')}}">home</a></p>
{% if g.user %}
<p>{{ g.user }}</p>
<p>
<a href="{{ url_for('auth.logout',next=request.path) }}">
logout
</a>
</p>
{% else %}
<p>
<a href="{{ url_for('auth.login',next=request.path) }}">
login
</a>
</p>
<p>
<a href="{{ url_for('auth.register',next=request.path) }}">
register
</a>
</p>
{% endif %}
</div>
</nav>
<div class="header">
{% block header %}{% endblock %}
</div>
{% for msg in get_flashed_messages() %}
<div class="flashmsg">{{ msg }}</div>
{% endfor %}
{% block nmcontent %}
<main>
{%block content %}{% endblock %}
</main>
{% endblock %}
<script>/* bees */</script>
</body>
</html>
|