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

@@ -1,7 +1,7 @@
{% load humanize %}
{% load bookwyrm_tags %}
{% related_status notification as related_status %}
<div class="notification {% if notification.id in unread %} is-primary{% endif %}">
<div class="notification is-clickable {% if notification.id in unread %} is-primary{% endif %}" data-href="{% block primary_link %}{% endblock %}">
<div class="columns is-mobile">
<div class="column is-narrow is-size-3 {% if notification.id in unread%}has-text-white{% else %}has-text-grey{% endif %}">
{% block icon %}{% endblock %}