{% if user != edited_user %} - {% trans user_name=(edited_user.formatted_name[0] or edited_user.identifier) %} + {% trans user_name=(edited_user.formatted_name or edited_user.identifier) %} Are you sure you want to delete the account of {{ user_name }}? This action is unrevokable and all the data about this user will be removed. {% endtrans %} {% else %} diff --git a/canaille/core/templates/modals/lock-account.html b/canaille/core/templates/modals/lock-account.html index 4913fab7..d7a91b5a 100644 --- a/canaille/core/templates/modals/lock-account.html +++ b/canaille/core/templates/modals/lock-account.html @@ -11,7 +11,7 @@
{% if user != edited_user %} - {% trans user_name=(edited_user.formatted_name[0] or edited_user.identifier) %} + {% trans user_name=(edited_user.formatted_name or edited_user.identifier) %} Are you sure you want to lock the account of {{ user_name }} ? The user won't be able to login until their account is unlocked. {% endtrans %} {% else %} diff --git a/canaille/core/templates/partial/users.html b/canaille/core/templates/partial/users.html index 3dead2df..214c24e9 100644 --- a/canaille/core/templates/partial/users.html +++ b/canaille/core/templates/partial/users.html @@ -39,7 +39,7 @@