Skip to content

Commit

Permalink
Small changes to get blocktrans to work as expected in move code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouse Reeve authored and Mouse Reeve committed Nov 2, 2023
1 parent 621cfa7 commit 2137737
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion bookwyrm/templates/feed/layout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends 'layout.html' %}
{% load i18n %}
{% load utilities %}

{% block title %}{% trans "Updates" %}{% endblock %}

Expand Down
16 changes: 8 additions & 8 deletions bookwyrm/templates/moved.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@

<div class="notification is-warning">
<p>
{% id_to_username request.user.moved_to as username %}
{% blocktrans %}
<strong>You have moved your account</strong> to <a href="{{user.moved_to}}">{{ username }}</a>
{% endblocktrans %}
{% id_to_username request.user.moved_to as username %}
{% blocktrans trimmed with moved_to=user.moved_to %}
<strong>You have moved your account</strong> to <a href="{{ moved_to }}">{{ username }}</a>
{% endblocktrans %}
</p>
<p class="mt-2">
{% trans "You can undo the move to restore full functionality, but some followers may have already unfollowed this account." %}
</p>
{% blocktrans %}
<p class="mt-2">You can undo the move to restore full functionality, but some followers may have already unfollowed this account.</p>
{% endblocktrans %}
</div>
</div>
<div class="columns is-justify-content-center">
Expand All @@ -49,4 +49,4 @@
</div>
</div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions bookwyrm/templates/notifications/items/move_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
{% block description %}
{% if related_user_moved_to %}
{% id_to_username request.user.moved_to as username %}
{% blocktrans %}
{% blocktrans trimmed %}
{{ related_user }} has moved to <a href="{{ related_user_moved_to }}">{{ username }}</a>
{% endblocktrans %}
<div class="row shrink my-2">
{% include 'snippets/move_user_buttons.html' with group=notification.related_group %}
</div>
{% else %}
{% blocktrans %}
{% blocktrans trimmed %}
{{ related_user }} has undone their move
{% endblocktrans %}
{% endif %}
Expand Down

0 comments on commit 2137737

Please sign in to comment.