Skip to content

Commit 276db59

Browse files
committed
Add missing base.html file for allauth.
1 parent 3057a6c commit 276db59

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

  • 16-profile-app/16-01-profile-app-part-1/templates/allauth
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>{% block head_title %}{% endblock %}</title>
5+
{% block extra_head %}
6+
{% endblock %}
7+
</head>
8+
<body>
9+
{% block body %}
10+
11+
{% if messages %}
12+
<div>
13+
<strong>Messages:</strong>
14+
<ul>
15+
{% for message in messages %}
16+
<li>{{message}}</li>
17+
{% endfor %}
18+
</ul>
19+
</div>
20+
{% endif %}
21+
22+
<div>
23+
<strong>Menu:</strong>
24+
<ul>
25+
{% if user.is_authenticated %}
26+
<li><a href="{% url 'account_email' %}">Change E-mail</a></li>
27+
<li><a href="{% url 'account_logout' %}">Sign Out</a></li>
28+
{% else %}
29+
<li><a href="{% url 'account_login' %}">Sign In</a></li>
30+
<li><a href="{% url 'account_signup' %}">Sign Up</a></li>
31+
{% endif %}
32+
</ul>
33+
</div>
34+
{% block content %}
35+
{% endblock %}
36+
{% endblock %}
37+
{% block extra_body %}
38+
{% endblock %}
39+
</body>
40+
</html>

0 commit comments

Comments
 (0)