From: Stephen Finucane Date: Fri, 10 Apr 2020 13:02:39 +0000 (+0100) Subject: templates: Use standard indentation X-Git-Tag: v3.1.0~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aaf31f51b18d23a50f5e206e82561e7ac40c15b;p=thirdparty%2Fpatchwork.git templates: Use standard indentation Use a standard two space indentation across files, rewrapping some stuff as we go along. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/about.html b/patchwork/templates/patchwork/about.html index 210e9513..43f3110b 100644 --- a/patchwork/templates/patchwork/about.html +++ b/patchwork/templates/patchwork/about.html @@ -48,8 +48,7 @@ - - - {% comment %} - spaceless tag is used to remove automatically added whitespace so that the container - is truly considered empty by the `:empty` pseudo-class that is used for styling - {% endcomment %}{% spaceless %} - -
- {% if errors %} -

The following error{{ errors|length|pluralize:" was,s were" }} encountered:

-
    - {% for error in errors %} -
  • {{ error }}
  • - {% endfor %} -
- {% endif %} -
- {% endspaceless %} -
+{% endspaceless %} +
{% block body %} {% endblock %} -
- - +
+ + diff --git a/templates/registration/password_change_done.html b/templates/registration/password_change_done.html index 65d89ef6..88b7d26d 100644 --- a/templates/registration/password_change_done.html +++ b/templates/registration/password_change_done.html @@ -4,7 +4,5 @@ {% block heading %}Password Change Complete{% endblock %} {% block body %} -

Your password has been changed successfully.

- {% endblock %} diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html index 8abe55ef..3e9a0788 100644 --- a/templates/registration/password_change_form.html +++ b/templates/registration/password_change_form.html @@ -4,42 +4,36 @@ {% block heading %}Password Change{% endblock %} {% block body %} - -

Please enter your old password, for security's sake, and then enter your new -password twice so we can verify you typed it in correctly.

+

+ Please enter your old password, for security's sake, and then enter your new + password twice so we can verify you typed it in correctly. +

-{% csrf_token %} - - - + {% csrf_token %} +
{% if form.errors %} - - + + {% endif %} - - {% for field in form %} - - - + + - + + {% endfor %} - - - - - -
Please correct the errors below.

-
Please correct the errors below.

+
{{ field.label_tag }} - {{ field.errors }} - {{ field }} +
{{ field.label_tag }} + {{ field.errors }} + {{ field }} {% if field.help_text %} -
{{ field.help_text }}
+
{{ field.help_text }}
{% endif %} -
- -
- + + + + + +
{% endblock %} diff --git a/templates/registration/password_reset_complete.html b/templates/registration/password_reset_complete.html index 1d88fdff..8678ee89 100644 --- a/templates/registration/password_reset_complete.html +++ b/templates/registration/password_reset_complete.html @@ -4,6 +4,5 @@ {% block heading %}Password reset completed{% endblock %} {% block body %} - -

Your password has been set. You may go ahead and log in now.

+

Your password has been set. You may go ahead and log in now.

{% endblock %} diff --git a/templates/registration/password_reset_confirm.html b/templates/registration/password_reset_confirm.html index 7e1e2f1e..4ab2357f 100644 --- a/templates/registration/password_reset_confirm.html +++ b/templates/registration/password_reset_confirm.html @@ -4,48 +4,46 @@ {% block heading %}Password reset confirmation{% endblock %} {% block body %} - {% if validlink %} -

Your username, in case you've forgotten: {{ form.user.get_username }}

-

Please enter your new password twice so we can verify you typed it in -correctly

+

+ Your username, in case you've forgotten: {{ form.user.get_username }} +

+

+ Please enter your new password twice so we can verify you typed it in + correctly. +

-{% csrf_token %} - - - + {% csrf_token %} +
{% if form.errors %} - - + + {% endif %} - - {% for field in form %} - - - + + - + + {% endfor %} - - - - - -
Please correct the errors below.

-
Please correct the errors below.

+
{{ field.label_tag }} - {{ field.errors }} - {{ field }} +
{{ field.label_tag }} + {{ field.errors }} + {{ field }} {% if field.help_text %} -
{{ field.help_text }}
+
{{ field.help_text }}
{% endif %} -
- -
- + + + + + +
{% else %} -

The password reset link was invalid, possibly because it has already -been used. Please request a new password reset.

+

+ The password reset link was invalid, possibly because it has already + been used. Please request a new password reset. +

{% endif %} {% endblock %} diff --git a/templates/registration/password_reset_done.html b/templates/registration/password_reset_done.html index fe9e551a..6070f767 100644 --- a/templates/registration/password_reset_done.html +++ b/templates/registration/password_reset_done.html @@ -4,10 +4,12 @@ {% block heading %}Password reset{% endblock %} {% block body %} - -

We have emailed you instructions for setting your password. -You should be receiving them shortly.

-

If you don't receive an email, please make sure you've entered the -address you registered with, and check your spam folder

- +

+ We have emailed you instructions for setting your password. + You should be receiving them shortly. +

+

+ If you don't receive an email, please make sure you've entered the + address you registered with, and check your spam folder. +

{% endblock %} diff --git a/templates/registration/password_reset_email.html b/templates/registration/password_reset_email.html index bdc28518..b90c13af 100644 --- a/templates/registration/password_reset_email.html +++ b/templates/registration/password_reset_email.html @@ -5,7 +5,7 @@ your user account on the Patchwork patch-tracking system. Please visit the following url and choose a new password: {% block reset_link %} -{{ protocol }}://{{domain}}{% url 'password_reset_confirm' uidb64=uid token=token %} +{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} {% endblock %} Happy patchworking. diff --git a/templates/registration/password_reset_form.html b/templates/registration/password_reset_form.html index 4718f436..fa6f3f1a 100644 --- a/templates/registration/password_reset_form.html +++ b/templates/registration/password_reset_form.html @@ -4,42 +4,36 @@ {% block heading %}Password reset{% endblock %} {% block body %} - -

Forgotten your password? Enter your email address below, and we will -email instructions for setting a new one.

+

+ Forgotten your password? Enter your email address below, and we will + email instructions for setting a new one. +

-{% csrf_token %} - - - + {% csrf_token %} +
{% if form.errors %} - - + + {% endif %} - - {% for field in form %} - - - + + - + + {% endfor %} - - - - - -
Please correct the errors below.

-
Please correct the errors below.

+
{{ field.label_tag }} - {{ field.errors }} - {{ field }} +
{{ field.label_tag }} + {{ field.errors }} + {{ field }} {% if field.help_text %} -
{{ field.help_text }}
+
{{ field.help_text }}
{% endif %} -
- -
- + + + + + +
{% endblock %}