Link notification block to its main path

This commit is contained in:
Mouse Reeve
2021-10-02 11:24:07 -07:00
parent 2a9f8f8122
commit b9632039f9
11 changed files with 62 additions and 2 deletions

View File

@ -3,6 +3,14 @@
{% load i18n %}
{% load utilities %}
{% 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 %}
{% block icon %}
<span class="icon icon-plus"></span>
{% endblock %}