diff --git a/pyproject.toml b/pyproject.toml index 282b4f70c..1bff8e1c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,3 +98,6 @@ max-line-length = 88 profile="django" indent=2 format_css=true +blank_line_after_tag="load,extends" +line_break_after_multiline_tag=true + diff --git a/umap/templates/404.html b/umap/templates/404.html index 1fd8b0570..aba824568 100644 --- a/umap/templates/404.html +++ b/umap/templates/404.html @@ -1,5 +1,7 @@ {% extends "base.html" %} + {% load i18n static %} + {% block content %}
0 4 -

Not Found

+

+ Not Found +

{% endblock content %} diff --git a/umap/templates/500.html b/umap/templates/500.html index 5f94dfd54..0ea01f5af 100644 --- a/umap/templates/500.html +++ b/umap/templates/500.html @@ -22,7 +22,9 @@ width="128px" height="128px" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB3aWR0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b3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lIgogICAgICAgaWQ9InBhdGg1MjYzIgogICAgICAgc29kaXBvZGk6Y3g9IjcwIgogICAgICAgc29kaXBvZGk6Y3k9IjE4IgogICAgICAgc29kaXBvZGk6cng9IjE4IgogICAgICAgc29kaXBvZGk6cnk9IjE4IgogICAgICAgZD0iTSA4OCwxOCBDIDg4LDI3Ljk0MTEyNSA3OS45NDExMjUsMzYgNzAsMzYgNjAuMDU4ODc1LDM2IDUyLDI3Ljk0MTEyNSA1MiwxOCA1Miw4LjA1ODg3NDUgNjAuMDU4ODc1LDAgNzAsMCA3OS45NDExMjUsMCA4OCw4LjA1ODg3NDUgODgsMTggeiIKICAgICAgIHRyYW5zZm9ybT0ibWF0cml4KDEuMzE0MjY5NywwLDAsMS4zMTQyNjk3LC0yNy45OTg4NzgsOTM0LjUyODU1KSIgLz4KICA8L2c+Cjwvc3ZnPgo=" /> -

Oops, Server error…

+

+ Oops, Server error… +

diff --git a/umap/templates/auth/user_detail.html b/umap/templates/auth/user_detail.html index ea8c62538..0fbb33722 100644 --- a/umap/templates/auth/user_detail.html +++ b/umap/templates/auth/user_detail.html @@ -1,15 +1,21 @@ {% extends "umap/content.html" %} + {% load i18n %} + {% block maincontent %}
-

{% blocktrans %}Browse {{ current_user }}'s maps{% endblocktrans %}

+

+ {% blocktrans %}Browse {{ current_user }}'s maps{% endblocktrans %} +

{% if maps %} {% include "umap/map_list.html" %} {% else %} -
{% blocktrans %}{{ current_user }} has no maps.{% endblocktrans %}
+
+ {% blocktrans %}{{ current_user }} has no maps.{% endblocktrans %} +
{% endif %}
diff --git a/umap/templates/auth/user_form.html b/umap/templates/auth/user_form.html index 88f983285..bbcc5f7ef 100644 --- a/umap/templates/auth/user_form.html +++ b/umap/templates/auth/user_form.html @@ -1,5 +1,7 @@ {% extends "umap/content.html" %} + {% load i18n %} + {% block maincontent %}

@@ -11,7 +13,11 @@

{% if form.non_field_errors %}
    - {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %} + {% for error in form.non_field_errors %} +
  • + {{ error }} +
  • + {% endfor %}
{% endif %}
@@ -22,13 +28,21 @@

{% if backends.backends|length %}
-

{% trans "Your current providers" %}

+

+ {% trans "Your current providers" %} +

    - {% for name in providers %}
  • {{ name|title }}
  • {% endfor %} + {% for name in providers %} +
  • + {{ name|title }} +
  • + {% endfor %}
-

{% trans "Connect to another provider" %}

+

+ {% trans "Connect to another provider" %} +

{% blocktrans %}It's a good habit to connect your account to more than one provider, in case one provider becomes unavailable, temporarily or even permanently.{% endblocktrans %}

diff --git a/umap/templates/auth/user_stars.html b/umap/templates/auth/user_stars.html index f24284464..d4d5882da 100644 --- a/umap/templates/auth/user_stars.html +++ b/umap/templates/auth/user_stars.html @@ -1,15 +1,21 @@ {% extends "umap/content.html" %} + {% load i18n %} + {% block maincontent %}
-

{% blocktrans %}Browse {{ current_user }}'s starred maps{% endblocktrans %}

+

+ {% blocktrans %}Browse {{ current_user }}'s starred maps{% endblocktrans %} +

{% if maps %} {% include "umap/map_list.html" %} {% else %} -
{% blocktrans %}{{ current_user }} has no starred maps yet.{% endblocktrans %}
+
+ {% blocktrans %}{{ current_user }} has no starred maps yet.{% endblocktrans %} +
{% endif %}
diff --git a/umap/templates/base.html b/umap/templates/base.html index 35be9099f..e0a749d5d 100644 --- a/umap/templates/base.html +++ b/umap/templates/base.html @@ -1,4 +1,5 @@ {% load umap_tags i18n static %} + diff --git a/umap/templates/registration/login.html b/umap/templates/registration/login.html index 1429ff5ad..b9bedfecf 100644 --- a/umap/templates/registration/login.html +++ b/umap/templates/registration/login.html @@ -1,5 +1,7 @@ {% extends "base.html" %} + {% load umap_tags i18n %} + {% block extra_head %} {% umap_css %} {{ block.super }} @@ -13,11 +15,17 @@ {% include "umap/branding.html" %} {% if ENABLE_ACCOUNT_LOGIN %} -

{% trans "Please log in with your account" %}

+

+ {% trans "Please log in with your account" %} +

{% if form.non_field_errors %}
    - {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %} + {% for error in form.non_field_errors %} +
  • + {{ error }} +
  • + {% endfor %}
{% endif %} @@ -34,7 +42,9 @@

{% trans "Please log in with your account" %}

{% endif %} {% if backends.backends|length %} -

{% trans "Please choose a provider" %}

+

+ {% trans "Please choose a provider" %} +