aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html
blob: a202300d85b3513561daeb67c46f69362e5b9cc9 (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
61
62
63
64
65
66
67
68
69
70
{# BASED? BASED ON WHAT? #}
{% from 'common.html' import disp_user with context %}
<!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">
        <link rel="stylesheet" href="/static/md-colors.css">
        <link rel="icon" href="//gh0.pw/i/a.ico">
    </head>
    <body>
        <nav aria-label="main" id="navbar">
			<p style="font-family: monospace;"><b><red>ap</red><orange>i</orange><yellow>o</yellow><green>f</green><blue>o</blue><indigo>r</indigo><violet>um</violet></b>&trade;</p>
			<form class="inline-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>{{ disp_user(g.user) }}</p>

				{% if is_admin %}
				<p><a href="{{url_for('admin.admin_page')}}">admin</a></p>
				{% endif %}
    				
				<p>
					<a href="{{url_for('auth.logout',next=path_for_next)}}">
						logout
					</a>
				</p>
				{% else %}
				<p>
					<a href="{{url_for('auth.login',next=path_for_next)}}">
						login
					</a>
				</p>
				<p>
					<a href="{{url_for('auth.register',next=path_for_next)}}">
						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>
	<!-- citrons was here -->
	<!-- Complete hybridisation of various species of wild duck gene pools could result in the extinction of many indigenous waterfowl. -->
    </body>
</html>