Skip to content

Commit f4f1aa9

Browse files
committed
Add templates.
1 parent 8912b70 commit f4f1aa9

27 files changed

+390
-0
lines changed

templates/accounts/base.html

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>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name %}Hello from {{ site_name }}!{% endblocktrans %}
2+
3+
{% block content %}{% endblock %}
4+
5+
{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you for using {{ site_name }}!
6+
{{ site_domain }}{% endblocktrans %}
7+
{% endautoescape %}

templates/accounts/email/email_confirmation_message.html

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "accounts/email/base_message.txt" %}
2+
{% load account %}
3+
{% load i18n %}
4+
5+
{% block content %}{% autoescape off %}{% user_display user as user_display %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Accounts - You're receiving this e-mail because user {{ user_display }} has given your e-mail address to register an account on {{ site_domain }}.
6+
7+
To confirm this is correct, go to {{ activate_url }}{% endblocktrans %}{% endautoescape %}{% endblock %}

templates/accounts/email/email_confirmation_signup_message.html

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% include "accounts/email/email_confirmation_message.txt" %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% include "accounts/email/email_confirmation_subject.txt" %}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% load i18n %}
2+
{% autoescape off %}
3+
{% blocktrans %}Please Confirm Your E-mail Address{% endblocktrans %}
4+
{% endautoescape %}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "accounts/email/base_message.txt" %}
2+
{% load i18n %}
3+
4+
{% block content %}{% autoescape off %}{% blocktrans %}Yippe Yada Yada! You're receiving this e-mail because you or someone else has requested a password for your user account.
5+
It can be safely ignored if you did not request a password reset. Click the link below to reset your password.{% endblocktrans %}
6+
7+
{{ password_reset_url }}{% if username %}
8+
9+
{% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %}{% endif %}{% endautoescape %}{% endblock %}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% load i18n %}
2+
{% autoescape off %}
3+
{% blocktrans %}Password Reset E-mail{% endblocktrans %}
4+
{% endautoescape %}

0 commit comments

Comments
 (0)