summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-26 11:17:43 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-26 11:28:11 +0000
commiteefa3daab918835a60450a8def778c5e11d4fef0 (patch)
treef8c764bb4a5ba87bd2c4c1f68c8ee0642ec7e1b4
parent51e2b0dc1ae2fec2cc1ef8a63c89a92ce5e53d82 (diff)
downloadinfrastructure-eefa3daab918835a60450a8def778c5e11d4fef0.tar.gz
openid_provider: Improve index and registration_complete templates
These now both show the user's full name and OpenID. The registration_complete also no longer refers to an authorization email that won't actually be sent.
-rw-r--r--baserock_openid_provider/templates/index.html6
-rw-r--r--baserock_openid_provider/templates/registration/registration_complete.html8
2 files changed, 11 insertions, 3 deletions
diff --git a/baserock_openid_provider/templates/index.html b/baserock_openid_provider/templates/index.html
index 053a9ce0..b2f46630 100644
--- a/baserock_openid_provider/templates/index.html
+++ b/baserock_openid_provider/templates/index.html
@@ -5,7 +5,11 @@
<p>This is the Baserock OpenID provider.</p>
{% if user.is_authenticated %}
- <p>Your OpenID is: <a href="http://openid.baserock.org/openid/{{ user.username }}/">http://openid.baserock.org/openid/{{ user.username }}/</a></p>
+ <p>You are registered as {{ user.get_full_name }}.</p>
+
+ <p>Your OpenID is:
+ <a href="http://openid.baserock.org/openid/{{ user.username }}/">http://openid.baserock.org/openid/{{ user.username }}/</a>
+ </p>
{% endif %}
{% endblock %}
diff --git a/baserock_openid_provider/templates/registration/registration_complete.html b/baserock_openid_provider/templates/registration/registration_complete.html
index 96a22ac4..7e6670aa 100644
--- a/baserock_openid_provider/templates/registration/registration_complete.html
+++ b/baserock_openid_provider/templates/registration/registration_complete.html
@@ -2,5 +2,9 @@
{% load i18n %}
{% block content %}
-<p>{% trans "You are now registered. Activation email sent." %}</p>
-{% endblock %} \ No newline at end of file
+<p>You are now registered as {{ user.get_full_name }}.</p>
+
+<p>Your OpenID is:
+<a href="http://openid.baserock.org/openid/{{ user.username }}/">http://openid.baserock.org/openid/{{ user.username }}/</a>
+</p>
+{% endblock %}