-
Notifications
You must be signed in to change notification settings - Fork 54
/
main.html
50 lines (44 loc) · 1.3 KB
/
main.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
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>{% block title %}User accounts demo{% endblock %}</title>
<style>
input {
display: block;
}
</style>
</head>
<body>
<div class="content">
{% block maincontent %}
{% endblock %}
</div>
<div>
<footer>
<hr/>
<p>
{% if not user %}
<a href="/login">Login (and forgot password)</a>
{% else %}
Logged in as <span style="background-color: OldLace">{{ user.name }}</span> | <a href="/logout">Logout</a>
{% endif %}
|
<a href="/">Home</a>
|
<a href="/signup">New user</a>
|
<a href="/authenticated">Secured page</a> (you can see this after login)
|
<a href="http:https://blog.abahgat.com/2013/01/07/user-authentication-with-webapp2-on-google-app-engine/">Tutorial</a>
|
<a href="http:https://github.com/abahgat/webapp2-user-accounts">Source code</a>
</p>
<p>
Got questions? <a href="http:https://blog.abahgat.com/about">Get in touch</a>.
<small>And if you want to <strong>donate</strong> a little something, <a href="http:https://abahgat.github.io/webapp2-user-accounts#donate">here</a> a few options.</small>
</p>
</footer>
</div>
</body>
</html>