2022-01-18 20:28:59 +00:00
|
|
|
{% load notification_page_tags %}
|
2021-10-02 14:58:20 +00:00
|
|
|
{% related_status notification as related_status %}
|
2022-01-11 19:04:56 +00:00
|
|
|
<div class="notification {% if notification.id in unread %}has-background-primary{% endif %}">
|
|
|
|
<div class="columns is-mobile {% if notification.id in unread %}has-text-white{% else %}has-text-grey{% endif %}">
|
|
|
|
<div class="column is-narrow is-size-3">
|
|
|
|
<a class="icon" href="{% block primary_link %}{% endblock %}">
|
2021-12-31 03:48:47 +00:00
|
|
|
{% block icon %}{% endblock %}
|
|
|
|
</a>
|
2021-10-02 14:58:20 +00:00
|
|
|
</div>
|
2021-12-31 03:48:47 +00:00
|
|
|
|
2021-10-02 14:58:20 +00:00
|
|
|
<div class="column is-clipped">
|
2021-12-31 03:48:47 +00:00
|
|
|
<div class="block content">
|
2021-10-02 14:58:20 +00:00
|
|
|
<p>
|
|
|
|
{% if notification.related_user %}
|
2021-10-23 13:59:06 +00:00
|
|
|
<a href="{{ notification.related_user.local_path }}">{% include 'snippets/avatar.html' with user=notification.related_user %}
|
|
|
|
{{ notification.related_user.display_name }}</a>
|
2021-10-02 14:58:20 +00:00
|
|
|
{% endif %}
|
|
|
|
{% block description %}{% endblock %}
|
|
|
|
</p>
|
|
|
|
</div>
|
2021-12-31 03:48:47 +00:00
|
|
|
|
2021-10-02 14:58:20 +00:00
|
|
|
{% if related_status %}
|
|
|
|
<div class="block">
|
|
|
|
{% block preview %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|