diff --git a/cookbook/forms.py b/cookbook/forms.py index e076f659..b1d9b172 100644 --- a/cookbook/forms.py +++ b/cookbook/forms.py @@ -77,7 +77,6 @@ class UserNameForm(forms.ModelForm): help_texts = { 'first_name': _('Both fields are optional. If none are given the username will be displayed instead') - # noqa: E501 } diff --git a/cookbook/templates/account/email.html b/cookbook/templates/account/email.html new file mode 100644 index 00000000..63597972 --- /dev/null +++ b/cookbook/templates/account/email.html @@ -0,0 +1,82 @@ +{% extends "base.html" %} +{% load crispy_forms_filters %} + +{% load i18n %} + +{% block title %}{% trans "E-mail Addresses" %}{% endblock %} + +{% block content %} +
{% trans 'The following e-mail addresses are associated with your account:' %}
+ + + + {% else %} ++ {% trans 'Warning:' %} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %} +
+ + {% endif %} + + {% if can_add_email %} +{% blocktrans with confirmation.email_address.email as email %}Please confirm that + {{ email }} is an e-mail address for user {{ user_display }} + .{% endblocktrans %}
+ + + + {% else %} + + {% url 'account_email' as email_url %} + +{% blocktrans %}This e-mail confirmation link expired or is invalid. Please + issue a new e-mail confirmation request.{% endblocktrans %}
+ + {% endif %} + +{% endblock %} \ No newline at end of file diff --git a/cookbook/templates/settings.html b/cookbook/templates/settings.html index e54ab5a3..8887d448 100644 --- a/cookbook/templates/settings.html +++ b/cookbook/templates/settings.html @@ -16,88 +16,141 @@ {% trans 'Settings' %} -Authorization: Token {{ api_token }}
{% trans 'or' %}curl -X GET http://your.domain.com/api/recipes/ -H 'Authorization:
+ Token {{ api_token }}'
+ Authorization: Token {{ api_token }}
{% trans 'or' %}curl -X GET http://your.domain.com/api/recipes/ -H 'Authorization: Token {{ api_token }}'
-
-