From 578458f734fb7b0e8ba0915dfb8227cf255fcc36 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Fri, 11 Oct 2024 11:06:06 +0800 Subject: [PATCH] perf: site msg content optimize --- .../templates/authentication/_msg_different_city.html | 4 +--- .../templates/authentication/_msg_reset_password.html | 3 +-- .../templates/authentication/_msg_rest_password_success.html | 5 ++--- .../authentication/_msg_rest_public_key_success.html | 5 ++--- apps/perms/templates/perms/_msg_permed_items_expire.html | 3 +-- .../users/templates/users/_msg_password_expire_reminder.html | 3 +-- apps/users/templates/users/_msg_user_created.html | 4 +--- 7 files changed, 9 insertions(+), 18 deletions(-) diff --git a/apps/authentication/templates/authentication/_msg_different_city.html b/apps/authentication/templates/authentication/_msg_different_city.html index b3ca09432..287d7c3e8 100644 --- a/apps/authentication/templates/authentication/_msg_different_city.html +++ b/apps/authentication/templates/authentication/_msg_different_city.html @@ -8,10 +8,8 @@

{% trans 'Username' %}: {{ username }}
{% trans 'Login Date' %}: {{ time }}
- {% trans 'Login city' %}: {{ city }}({{ ip }}) + {% trans 'Login city' %}: {{ city }}({{ ip }})

- --

{% trans 'If you suspect that the login behavior is abnormal, please modify the account password in time.' %}

\ No newline at end of file diff --git a/apps/authentication/templates/authentication/_msg_reset_password.html b/apps/authentication/templates/authentication/_msg_reset_password.html index f53bda209..6f0132ac3 100644 --- a/apps/authentication/templates/authentication/_msg_reset_password.html +++ b/apps/authentication/templates/authentication/_msg_reset_password.html @@ -10,8 +10,7 @@ {% trans 'Click here reset password' %}

- -- +

{% trans 'This link is valid for 1 hour. After it expires' %} {% trans 'request new one' %} diff --git a/apps/authentication/templates/authentication/_msg_rest_password_success.html b/apps/authentication/templates/authentication/_msg_rest_password_success.html index 8f875a819..25740f267 100644 --- a/apps/authentication/templates/authentication/_msg_rest_password_success.html +++ b/apps/authentication/templates/authentication/_msg_rest_password_success.html @@ -5,10 +5,9 @@ {% trans 'Your password has just been successfully updated' %}

- {% trans 'IP' %}: {{ ip_address }}
- {% trans 'Browser' %}: {{ browser }} + {% trans 'IP' %}: {{ ip_address }}
+ {% trans 'Browser' %}: {{ browser }}

--

{% trans 'If the password update was not initiated by you, your account may have security issues' %}
{% trans 'If you have any questions, you can contact the administrator' %} diff --git a/apps/authentication/templates/authentication/_msg_rest_public_key_success.html b/apps/authentication/templates/authentication/_msg_rest_public_key_success.html index 327f75cb0..94cb3e50f 100644 --- a/apps/authentication/templates/authentication/_msg_rest_public_key_success.html +++ b/apps/authentication/templates/authentication/_msg_rest_public_key_success.html @@ -5,10 +5,9 @@ {% trans 'Your public key has just been successfully updated' %}

- {% trans 'IP' %}: {{ ip_address }}
- {% trans 'Browser' %}: {{ browser }} + {% trans 'IP' %}: {{ ip_address }}
+ {% trans 'Browser' %}: {{ browser }}

--

{% trans 'If the public key update was not initiated by you, your account may have security issues' %}
{% trans 'If you have any questions, you can contact the administrator' %} diff --git a/apps/perms/templates/perms/_msg_permed_items_expire.html b/apps/perms/templates/perms/_msg_permed_items_expire.html index 328653d6f..01175f54e 100644 --- a/apps/perms/templates/perms/_msg_permed_items_expire.html +++ b/apps/perms/templates/perms/_msg_permed_items_expire.html @@ -15,8 +15,7 @@ {% endfor %} -
-- +

{% trans 'If you have any question, please contact the administrator' %}

diff --git a/apps/users/templates/users/_msg_password_expire_reminder.html b/apps/users/templates/users/_msg_password_expire_reminder.html index bfd290156..7cde70165 100644 --- a/apps/users/templates/users/_msg_password_expire_reminder.html +++ b/apps/users/templates/users/_msg_password_expire_reminder.html @@ -9,9 +9,8 @@

{% trans 'Click here update password' %} -
+

--

{% trans 'If your password has expired, please click the link below to' %} {% trans 'Reset password' %} diff --git a/apps/users/templates/users/_msg_user_created.html b/apps/users/templates/users/_msg_user_created.html index e3e23bb89..8a7f35422 100644 --- a/apps/users/templates/users/_msg_user_created.html +++ b/apps/users/templates/users/_msg_user_created.html @@ -15,9 +15,7 @@ {% trans 'click here to set your password' %}

- - - - +

{% trans 'This link is valid for 1 hour. After it expires' %} {% trans 'request new one' %}