From f1e089f7736ac8f7b9af784461350c4c169211ad Mon Sep 17 00:00:00 2001
From: Jeremy Kerr
Date: Fri, 22 Aug 2008 10:41:25 +0800
Subject: Use django-registration infrastructure
Signed-off-by: Jeremy Kerr
---
templates/registration/activate.html | 13 +++
templates/registration/activation_email.txt | 11 ++
.../registration/activation_email_subject.txt | 1 +
templates/registration/login.html | 26 +++++
templates/registration/logout.html | 8 ++
templates/registration/registration_complete.html | 13 +++
templates/registration/registration_form.html | 121 +++++++++++++++++++++
7 files changed, 193 insertions(+)
create mode 100644 templates/registration/activate.html
create mode 100644 templates/registration/activation_email.txt
create mode 100644 templates/registration/activation_email_subject.txt
create mode 100644 templates/registration/login.html
create mode 100644 templates/registration/logout.html
create mode 100644 templates/registration/registration_complete.html
create mode 100644 templates/registration/registration_form.html
(limited to 'templates/registration')
diff --git a/templates/registration/activate.html b/templates/registration/activate.html
new file mode 100644
index 0000000..f0cc39f
--- /dev/null
+++ b/templates/registration/activate.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block title %}Registration{% endblock %}
+{% block heading %}Registration{% endblock %}
+
+{% block body %}
+Registraton confirmed!
+
+Your patchwork registration is complete. Head over to your profile to start using
+patchwork's extra features.
+
+{% endblock %}
diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt
new file mode 100644
index 0000000..6b1477d
--- /dev/null
+++ b/templates/registration/activation_email.txt
@@ -0,0 +1,11 @@
+Hi,
+
+This email is to confirm your account on the patchwork patch-tracking
+system. You can activate your account by visiting the url:
+
+ http://{{site.domain}}{% url registration_activate activation_key=activation_key %}
+
+If you didn't request a user account on patchwork, then you can ignore
+this mail.
+
+Happy patchworking.
diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt
new file mode 100644
index 0000000..c409f38
--- /dev/null
+++ b/templates/registration/activation_email_subject.txt
@@ -0,0 +1 @@
+Patchwork account confirmation
diff --git a/templates/registration/login.html b/templates/registration/login.html
new file mode 100644
index 0000000..d01d055
--- /dev/null
+++ b/templates/registration/login.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+
+{% block title %}Patchwork Login{% endblock %}
+{% block heading %}Patchwork Login{% endblock %}
+
+
+{% block body %}
+
+{% endblock %}
diff --git a/templates/registration/logout.html b/templates/registration/logout.html
new file mode 100644
index 0000000..3128d97
--- /dev/null
+++ b/templates/registration/logout.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+
+{% block title %}Patchwork{% endblock %}
+{% block heading %}Patchwork{% endblock %}
+
+{% block body %}
+Logged out
+{% endblock %}
diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html
new file mode 100644
index 0000000..47ee3f2
--- /dev/null
+++ b/templates/registration/registration_complete.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block title %}Patchwork Registration{% endblock %}
+{% block heading %}Patchwork Registration{% endblock %}
+
+{% block body %}
+
+ Registration successful!
+ A confirmation email has been sent to your email address. You'll
+ need to visit the link provided in that email to actiavate your
+ patchwork account.
+
+{% endblock %}
diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html
new file mode 100644
index 0000000..c8ce116
--- /dev/null
+++ b/templates/registration/registration_form.html
@@ -0,0 +1,121 @@
+{% extends "base.html" %}
+
+{% block title %}Patchwork Registration{% endblock %}
+{% block heading %}Patchwork Registration{% endblock %}
+
+
+{% block body %}
+
+{% if request and not error %}
+ Registration successful!
+ A confirmation email has been sent to {{ request.email }}. You'll
+ need to visit the link provided in that email to confirm your
+ registration.
+ {{email}}
+
+{% else %}
+By creating a patchwork account, you can:
+
+ - create "bundles" of patches
+ - update the state of your own patches
+
+
+{% endif %}
+
+{% endblock %}
--
cgit v1.2.3