From 8bb5a664c53449290c95aa53c82ec96ddc5bd526 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 11 Dec 2023 20:12:14 -0800 Subject: [PATCH] Fixes incorrect translation and display of moved user page --- bookwyrm/templates/shelf/shelf.html | 15 +-------------- .../templates/snippets/moved_user_notice.html | 12 ++++++++++++ bookwyrm/templates/user/layout.html | 7 +------ 3 files changed, 14 insertions(+), 20 deletions(-) create mode 100644 bookwyrm/templates/snippets/moved_user_notice.html diff --git a/bookwyrm/templates/shelf/shelf.html b/bookwyrm/templates/shelf/shelf.html index a2410ef95..45a94fed9 100644 --- a/bookwyrm/templates/shelf/shelf.html +++ b/bookwyrm/templates/shelf/shelf.html @@ -19,20 +19,7 @@ {% if user.moved_to %} -
-
-

- {% trans "You have have moved to" %} - {% id_to_username user.moved_to %} -

-

{% trans "You can undo this move to restore full functionality, but some followers may have already unfollowed this account." %}

-
- {% csrf_token %} - - -
-
-
+ {% include "snippets/moved_user_notice.html" with user=user %} {% else %}