mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-13 10:49:23 +00:00
- make Move notifications less complicated - moved users cannot do anything other than unmove or log out - refactor translations for moved users
29 lines
847 B
HTML
29 lines
847 B
HTML
{% extends 'notifications/items/layout.html' %}
|
|
|
|
{% load i18n %}
|
|
{% load utilities %}
|
|
{% load user_page_tags %}
|
|
|
|
{% block primary_link %}{% spaceless %}
|
|
{{ notification.related_object.local_path }}
|
|
{% endspaceless %}{% endblock %}
|
|
|
|
{% block icon %}
|
|
<span class="icon icon-local"></span>
|
|
{% endblock %}
|
|
|
|
{% block description %}
|
|
{% if related_user_moved_to %}
|
|
{% blocktrans %}
|
|
{{ related_user }} has moved to <a href="{{ related_user_moved_to }}">
|
|
{% endblocktrans %}{% id_to_username related_user_moved_to %}</a>
|
|
<div class="row shrink my-2">
|
|
{% include 'snippets/move_user_buttons.html' with group=notification.related_group %}
|
|
</div>
|
|
{% else %}
|
|
{% blocktrans %}
|
|
{{ related_user }} has undone their move
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
{% endblock %}
|