From 9aaf31f51b18d23a50f5e206e82561e7ac40c15b Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 10 Apr 2020 14:02:39 +0100 Subject: [PATCH] templates: Use standard indentation Use a standard two space indentation across files, rewrapping some stuff as we go along. Signed-off-by: Stephen Finucane --- patchwork/templates/patchwork/about.html | 6 +- patchwork/templates/patchwork/bundle.html | 37 +- patchwork/templates/patchwork/bundles.html | 84 +-- .../templates/patchwork/confirm-error.html | 12 +- patchwork/templates/patchwork/login.html | 40 +- .../templates/patchwork/mail-settings.html | 47 +- patchwork/templates/patchwork/mail.html | 45 +- .../templates/patchwork/optin-request.html | 50 +- patchwork/templates/patchwork/optin.html | 21 +- .../templates/patchwork/optout-request.html | 52 +- patchwork/templates/patchwork/optout.html | 28 +- .../patchwork/partials/download-buttons.html | 34 +- .../templates/patchwork/partials/filters.html | 83 +-- .../patchwork/partials/pagination.html | 42 +- .../patchwork/partials/patch-list.html | 479 +++++++++--------- patchwork/templates/patchwork/profile.html | 271 +++++----- patchwork/templates/patchwork/project.html | 98 ++-- patchwork/templates/patchwork/projects.html | 16 +- .../patchwork/registration-confirm.html | 9 +- .../templates/patchwork/registration.html | 160 +++--- patchwork/templates/patchwork/submission.html | 462 +++++++++-------- patchwork/templates/patchwork/todo-list.html | 8 +- patchwork/templates/patchwork/todo-lists.html | 31 +- .../patchwork/user-link-confirm.html | 11 +- patchwork/templates/patchwork/user-link.html | 32 +- patchwork/tests/views/test_user.py | 2 +- templates/404.html | 2 - templates/base.html | 244 ++++----- .../registration/password_change_done.html | 2 - .../registration/password_change_form.html | 52 +- .../registration/password_reset_complete.html | 3 +- .../registration/password_reset_confirm.html | 62 ++- .../registration/password_reset_done.html | 14 +- .../registration/password_reset_email.html | 2 +- .../registration/password_reset_form.html | 52 +- 35 files changed, 1294 insertions(+), 1299 deletions(-) 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 %} -- 2.47.3