2021-10-02 17:46:09 +00:00
|
|
|
{% extends 'notifications/items/item_layout.html' %}
|
2021-10-02 16:50:48 +00:00
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
|
|
|
|
2021-10-02 18:24:07 +00:00
|
|
|
{% block primary_link %}{% spaceless %}
|
|
|
|
{% if notification.related_list_item.approved %}
|
|
|
|
{{ notification.related_list_item.book_list.local_path }}
|
|
|
|
{% else %}
|
|
|
|
{% url 'list-curate' notification.related_list_item.book_list.id %}
|
|
|
|
{% endif %}
|
|
|
|
{% endspaceless %}{% endblock %}
|
|
|
|
|
2021-10-02 16:50:48 +00:00
|
|
|
{% block icon %}
|
|
|
|
<span class="icon icon-plus"></span>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block description %}
|
|
|
|
{% with book_path=notification.related_list_item.book.local_path %}
|
|
|
|
{% with book_title=notification.related_list_item.book|book_title %}
|
|
|
|
{% with list_name=notification.related_list_item.book_list.name %}
|
|
|
|
|
|
|
|
{% if notification.related_list_item.approved %}
|
2021-10-02 17:52:35 +00:00
|
|
|
{% blocktrans trimmed with list_path=notification.related_list_item.book_list.local_path %}
|
2021-10-02 16:50:48 +00:00
|
|
|
|
|
|
|
added <em><a href="{{ book_path }}">{{ book_title }}</a></em> to your list "<a href="{{ list_path }}">{{ list_name }}</a>"
|
|
|
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% else %}
|
2021-10-02 17:52:35 +00:00
|
|
|
{% url 'list-curate' notification.related_list_item.book_list.id as list_path %}
|
|
|
|
{% blocktrans trimmed with list_path=list_path %}
|
2021-10-02 16:50:48 +00:00
|
|
|
|
2021-10-02 17:52:35 +00:00
|
|
|
suggested adding <em><a href="{{ book_path }}">{{ book_title }}</a></em> to your list "<a href="{{ list_path }}">{{ list_name }}</a>"
|
2021-10-02 16:50:48 +00:00
|
|
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endwith %}
|
|
|
|
{% endwith %}
|
|
|
|
{% endwith %}
|
|
|
|
{% endblock %}
|
|
|
|
|