-
Notifications
You must be signed in to change notification settings - Fork 18
/
base.html
44 lines (39 loc) · 998 Bytes
/
base.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{% block title %}Title{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/static/scanner.css" />
</head>
<body>
<div align="right" style='float: right'>
{% if user_info %}
{% if user_info.non_owner %}
{{user_info.real_email}}, acting as
{% endif %}
<b>{{user_info.user.email}}</b> |
{% endif %}
<a href="{{login_url}}">
{% if user_info %}
Log out
{% else %}
Log in
{% endif %}
</a>
</div>
<div>[<a href='/'>Scanning Cabinet</a>]</div>
{% block preamble %}
{% endblock %}
{% if error_messages %}
<ul>
{% for message in error_messages %}
<li style="color: red">{{message|escape}}</li>
{% endfor %}
</ul>
{% endif %}
{% block main_body %}
Empty
{% endblock %}
</body>
</html>