diff --git a/.eslintignore b/.eslintignore index 60bff4f52d9a..54f42aa52ac2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -7,3 +7,4 @@ datumaro/ keys/ logs/ static/ +templates/ diff --git a/.prettierignore b/.prettierignore index 60bff4f52d9a..54f42aa52ac2 100644 --- a/.prettierignore +++ b/.prettierignore @@ -7,3 +7,4 @@ datumaro/ keys/ logs/ static/ +templates/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f8c3eda397b..eb9c68ec398c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- +- Django templates for email and user guide () ### Security diff --git a/cvat/apps/authentication/templates/account/email/email_confirmation_signup_message.html b/cvat/apps/authentication/templates/account/email/email_confirmation_signup_message.html index c121b810c453..ec80776a07f7 100644 --- a/cvat/apps/authentication/templates/account/email/email_confirmation_signup_message.html +++ b/cvat/apps/authentication/templates/account/email/email_confirmation_signup_message.html @@ -1,5 +1,6 @@ -{% load account %}{% user_display user as user_display %}{% load i18n %}{% autoescape off %}{% blocktrans with -site_name=current_site.name site_domain=current_site.domain %}Hello from {{ site_name }}! +{% load account %}{% user_display user as user_display %}{% load i18n %}{% autoescape off %} +{% blocktrans with site_name=current_site.name site_domain=current_site.domain %} +Hello from {{ site_name }}!

You're receiving this e-mail because user {{ user_display }} has given yours as an e-mail address @@ -7,6 +8,7 @@

To confirm this is correct, go to {{ activate_url }}

-{% endblocktrans %} {% blocktrans with site_name=current_site.name site_domain=current_site.domain %} +{% endblocktrans %} +{% blocktrans with site_name=current_site.name site_domain=current_site.domain %} {{ site_domain }} {% endblocktrans %} {% endautoescape %} diff --git a/cvat/apps/authentication/templates/authentication/password_reset_email.html b/cvat/apps/authentication/templates/authentication/password_reset_email.html index e2c68db10772..fa3eef8bd49d 100644 --- a/cvat/apps/authentication/templates/authentication/password_reset_email.html +++ b/cvat/apps/authentication/templates/authentication/password_reset_email.html @@ -1,5 +1,16 @@ -{% load i18n %}{% autoescape off %} {% blocktrans %}You're receiving this email because you requested a password reset -for your user account at {{ site_name }}.{% endblocktrans %} {% trans "Please go to the following page and choose a new -password:" %} {% block reset_link %} {{ protocol }}://{{ domain }}/auth/password/reset/confirm?uid={{ uid }}&token={{ -token }} {% endblock %} {% trans "Your username, in case you've forgotten:" %} {{ user.get_username }} {% trans "Thanks -for using our site!" %} {% blocktrans %}The {{ site_name }} team{% endblocktrans %} {% endautoescape %} +{% load i18n %}{% autoescape off %} +{% blocktrans %} +You're receiving this email because you requested a password reset for your user account at {{ site_name }}. +{% endblocktrans %} + +{% trans "Please go to the following page and choose a new password:" %} +{% block reset_link %} +{{ protocol }}://{{ domain }}/auth/password/reset/confirm?uid={{ uid }}&token={{ token }} +{% endblock %} +{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }} + +{% trans "Thanks for using our site!" %} + +{% blocktrans %}The {{ site_name }} team{% endblocktrans %} + +{% endautoescape %} diff --git a/cvat/apps/documentation/templates/documentation/base_page.html b/cvat/apps/documentation/templates/documentation/base_page.html index be1271114901..f49fe5f1002f 100644 --- a/cvat/apps/documentation/templates/documentation/base_page.html +++ b/cvat/apps/documentation/templates/documentation/base_page.html @@ -1,5 +1,5 @@ @@ -15,8 +15,7 @@ -