From 7e4f1d542e00b4d3121da6ae5524e95867f2371b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Nov 2009 20:18:55 -0500 Subject: better comments, email subscriptions, corrected view counter, some ie7 issues, wiki optional with settings.WIKI_ON, site can be mounted on arbitrary url prefix, english language improvements, added feedback form, versioned css and js files to force browser cache reload when settings.RESOURCE_REVISION is incremented , other fixes --- templates/authopenid/changeemail.html | 45 +++++++----- templates/authopenid/changeopenid.html | 2 +- templates/authopenid/changepw.html | 33 +++------ templates/authopenid/complete.html | 82 +++++++++++++++++----- templates/authopenid/confirm_email.txt | 2 +- templates/authopenid/delete.html | 3 +- .../authopenid/external_legacy_login_info.html | 16 +++++ templates/authopenid/sendpw.html | 30 +++----- templates/authopenid/sendpw_email.txt | 11 +-- templates/authopenid/settings.html | 2 +- templates/authopenid/signin.html | 70 ++++++++---------- templates/authopenid/signup.html | 59 ++++------------ 12 files changed, 177 insertions(+), 178 deletions(-) create mode 100644 templates/authopenid/external_legacy_login_info.html (limited to 'templates/authopenid') diff --git a/templates/authopenid/changeemail.html b/templates/authopenid/changeemail.html index 09857d17..94d1881c 100644 --- a/templates/authopenid/changeemail.html +++ b/templates/authopenid/changeemail.html @@ -1,37 +1,44 @@ {% extends "base_content.html" %} {% load i18n %} +{% block title %}{% spaceless %}{% trans "Change email" %}{% endspaceless %}{% endblock %} {% block content %} {% ifequal action_type "change" %}
- {% trans "Change email" %} + {% if user.email %} + {% trans "Change email" %} + {% else %} + {% trans "Save your email address" %} + {% endif %}

- {% blocktrans %}change {{email}} info{% endblocktrans %} -

- {% if form.errors %} -

{% trans "Please correct errors below:" %}
- {% if form.email.errors %} - {{ form.email.errors|join:", " }} - {% endif %} - {% if form.password.errors %} - {{ form.password.errors|join:", " }} + {% if user.email %} + {% blocktrans %}change {{email}} info{% endblocktrans %} + {% else %} + {% blocktrans %}here is why email is required, see {{gravatar_faq_url}}{% endblocktrans %} {% endif %}

- {% endif %} - {% if msg %} -

{{ msg }}

+

{{ msg }}

{% endif %}
- -

{{ form.email }}
- + {% if next %} + + {% endif %} +
+ + {% if form.email.errors %} +

{{form.email.errors|join:", "}}

+ {% endif %} + {{ form.email }} +
- + + {% if user.email %} + {% endif %}
@@ -42,7 +49,7 @@ {% trans "Validate email" %}

- {% blocktrans %}validate {{email}} info{% endblocktrans %} + {% blocktrans %}validate {{email}} info or go to {{change_email_url}}{% endblocktrans %}

{% endifequal %} {% ifequal action_type "keep" %} @@ -50,7 +57,7 @@ {% trans "Email not changed" %}

- {% blocktrans %}old {{email}} kept{% endblocktrans %} + {% blocktrans %}old {{email}} kept, if you like go to {{change_email_url}}{% endblocktrans %}

{% endifequal %} {% ifequal action_type "done_novalidate" %} diff --git a/templates/authopenid/changeopenid.html b/templates/authopenid/changeopenid.html index 9b5a196a..d01788fb 100644 --- a/templates/authopenid/changeopenid.html +++ b/templates/authopenid/changeopenid.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load i18n %} - +{% block title %}{% spaceless %}{% trans "Change OpenID" %}{% endspaceless %}{% endblock %} {% block content %}

diff --git a/templates/authopenid/changepw.html b/templates/authopenid/changepw.html index 0e90b172..8b059544 100644 --- a/templates/authopenid/changepw.html +++ b/templates/authopenid/changepw.html @@ -1,34 +1,17 @@ {% extends "base.html" %} {% load i18n %} - -{% block head %} - -{% endblock %} - - - +{% block head %}{% endblock %} +{% block title %}{% spaceless %}{% trans "Change password" %}{% endspaceless %}{% endblock %} {% block content %} -
-

- {% trans "Account: change password" %} -

-
-

{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}

-{% if form.errors %} -

{% trans "Please correct errors below:" %}
-{{ form.errors }} -

-{% endif %} - +
{% trans "Account: change password" %}
+

{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}

- -
{{ form.oldpw }}
-
{{ form.password1 }}
-
{{ form.password2 }}
-

- +
    + {{form.as_ul}} +
+
{% endblock %} diff --git a/templates/authopenid/complete.html b/templates/authopenid/complete.html index f29b7670..9a94c3c4 100644 --- a/templates/authopenid/complete.html +++ b/templates/authopenid/complete.html @@ -1,5 +1,19 @@ {% extends "base_content.html" %} +{% comment %} +views calling this template: +* django_authopenid.views.register with login_type='openid' +* django_authopenid.views.signin - with login_type='legacy' + +parameters: +* provider +* login_type openid|legacy +* username (same as screen name or username in the models, and nickname in openid sreg) +* form1 - OpenidRegisterForm +* form2 - OpenidVerifyForm not clear what this form is supposed to do, not used for legacy +* email_feeds_form forum.forms.EditUserEmailFeedsForm +* openid_username_exists +{% endcomment %} {% load i18n %} {% block head %}{% endblock %} {% block title %}{% spaceless %}{% trans "Connect your OpenID with this site" %}{% endspaceless %}{% endblock %} @@ -9,25 +23,34 @@

- {% blocktrans %}register new {{provider}} account info{% endblocktrans %} + {% ifequal login_type 'openid' %} + {% blocktrans %}register new {{provider}} account info, see {{gravatar_faq_url}}{% endblocktrans %} + {% else %} + {% ifequal login_type 'legacy' %} + {% if external_login_name_is_taken %} + {% blocktrans %}{{username}} already exists, choose another name for + {{provider}}. Email is required too, see {{gravatar_faq_url}} + {% endblocktrans %} + {% else %} + {% blocktrans %}register new external {{provider}} account info, see {{gravatar_faq_url}}{% endblocktrans %} + {% endif %} + {% endifequal %} + {% endifequal %}

{% trans "This account already exists, please use another." %}

{% if form1.errors %} -
- {% trans "Sorry, looks like we have some errors:" %}
-
{% endif %} - {% if form2.errors %} + {% comment %} + {% if form2.errors %}
{% trans "Sorry, looks like we have some errors:" %}
{% endif %} + {% endcomment %}
+ {% ifequal login_type 'openid' %}
- {{ form.next }} -

{{ form1.username }}
-

{{ form1.email }}
+ {% else %} + + {% endifequal %} + {{ form1.next }} +
+ + {% if form1.username.errors %} +

{{ form1.username.errors|join:", " }}

+ {% endif %} + {{ form1.username }} +
+
+ + {% if form1.email.errors %} +

{{ form1.email.errors|join:", " }}

+ {% endif %} + {{ form1.email }} +
+

{% trans "receive updates motivational blurb" %}

+ {% include "edit_user_email_feeds_form.html" %}
+ {% comment %} + {% if form2 %} + {% endif %} + {% endcomment %} {% endblock %} diff --git a/templates/authopenid/confirm_email.txt b/templates/authopenid/confirm_email.txt index 202db0fc..3a01f146 100644 --- a/templates/authopenid/confirm_email.txt +++ b/templates/authopenid/confirm_email.txt @@ -7,7 +7,7 @@ {% trans "Password:" %} {{ password }} {% trans "Please sign in here:" %} -{{ site_url }}{% trans "signin/" %} +{{signup_url}} {% blocktrans %}Sincerely, Forum Administrator{% endblocktrans %} diff --git a/templates/authopenid/delete.html b/templates/authopenid/delete.html index d39bc962..0f9f1c60 100644 --- a/templates/authopenid/delete.html +++ b/templates/authopenid/delete.html @@ -1,8 +1,7 @@ {% extends "base.html" %} {% load i18n %} - - +{% block title %}{% spaceless %}{% trans "Delete account" %}{% endspaceless %}{% endblock %} {% block content %}

diff --git a/templates/authopenid/external_legacy_login_info.html b/templates/authopenid/external_legacy_login_info.html new file mode 100644 index 00000000..e2f4713e --- /dev/null +++ b/templates/authopenid/external_legacy_login_info.html @@ -0,0 +1,16 @@ +{% extends "base_content.html" %} + +{% load i18n %} +{% block title %}{% spaceless %}{% trans "Traditional login information" %}{% endspaceless %}{% endblock %} +{% block content %} +
+ {% trans "Traditional login information" %} +
+{% spaceless %} +
+fill in template templates/authopenid/external_legacy_login_info.html +and explain how to change password, recover password, etc. + +
+{% endspaceless %} +{% endblock %} diff --git a/templates/authopenid/sendpw.html b/templates/authopenid/sendpw.html index 37091261..6241c811 100644 --- a/templates/authopenid/sendpw.html +++ b/templates/authopenid/sendpw.html @@ -2,35 +2,25 @@ {% load i18n %} {% block title %}{% spaceless %}{% trans "Send new password" %}{% endspaceless %}{% endblock %} - {% block content %} -
-

{% trans "Send new password" %}

- -
-
-{% trans "Lost your password? No problem - here you can reset it." %}
-{% trans "Please enter your username below and new password will be sent to your registered e-mail" %} +
+ {% trans "Send new password" %}
-{% if form.errors %} -

{% trans "Sorry, looks like we have some errors:" %}
- {% if form.username.errors %} - {{ form.username.errors|join:", " }} - {% endif %} +

+{% trans "password recovery information" %}

-{% endif %} {% if msg %} -
{{ msg }}
+

{{msg}}

{% endif %}

-
{{ form.username }}
- -

{% trans "return to login" %}

- +
    + {{form.as_ul}} +
+

+ {% trans "return to login" %}

- {% trans "Note: your new password will be activated only after you click the activation link in the email message" %}
{% endblock %} diff --git a/templates/authopenid/sendpw_email.txt b/templates/authopenid/sendpw_email.txt index 2024061c..f044ca45 100644 --- a/templates/authopenid/sendpw_email.txt +++ b/templates/authopenid/sendpw_email.txt @@ -1,14 +1,9 @@ {% load i18n %} -{% blocktrans %}Someone has requested to reset your password on {{ site_url }}. +{% blocktrans%}Someone has requested to reset your password on {{site_url}}. If it were not you, it is safe to ignore this email.{% endblocktrans %} -{% trans "Your new account details are:" %} - -{% trans "Username:" %} {{ username }} -{% trans "New password:" %} {{ password }} - -{% trans "To confirm that you wanted to reset your password please visit:" %} -{{ site_url }}{{ url_confirm }}?key={{ confirm_key }} +{% blocktrans %}email explanation how to use new {{password}} for {{username}} +with the {{key_link}}{% endblocktrans %} {% blocktrans %}Sincerely, Forum Administrator{% endblocktrans %} diff --git a/templates/authopenid/settings.html b/templates/authopenid/settings.html index ecc16c72..66ea5953 100644 --- a/templates/authopenid/settings.html +++ b/templates/authopenid/settings.html @@ -1,7 +1,7 @@ {% extends "base_content.html" %} {% load i18n %} - +{% block title %}{% spaceless %}{% trans "Account functions" %}{% endspaceless %}{% endblock %} {% block head %}