mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Small changes to get blocktrans to work as expected in move code
This commit is contained in:
parent
621cfa7ed2
commit
2137737d9b
3 changed files with 10 additions and 11 deletions
|
@ -1,6 +1,5 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% load i18n %}
|
||||
{% load utilities %}
|
||||
|
||||
{% block title %}{% trans "Updates" %}{% endblock %}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
@ -49,4 +49,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue