moviewyrm/bookwyrm/templates/notifications/items/item_layout.html

31 lines
1.2 KiB
HTML
Raw Normal View History

2021-10-02 14:58:20 +00:00
{% load bookwyrm_tags %}
{% related_status notification as related_status %}
<div class="box is-shadowless has-background-white-ter {% if notification.id in unread %} is-primary{% endif %}">
2021-10-02 14:58:20 +00:00
<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 %}">
<a class="has-text-dark" href="{% block primary_link %}{% endblock %}">
{% block icon %}{% endblock %}
</a>
2021-10-02 14:58:20 +00:00
</div>
2021-10-02 14:58:20 +00:00
<div class="column is-clipped">
<div class="block content">
2021-10-02 14:58:20 +00:00
<p>
{% if notification.related_user %}
<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-10-02 14:58:20 +00:00
{% if related_status %}
<div class="block">
{% block preview %}{% endblock %}
</div>
{% endif %}
</div>
</div>
</div>