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 %}
|
|
|
|
{{ notification.related_status.local_path }}
|
|
|
|
{% endspaceless %}{% endblock %}
|
|
|
|
|
2021-10-02 16:50:48 +00:00
|
|
|
{% block icon %}
|
|
|
|
<span class="icon icon-heart"></span>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block description %}
|
|
|
|
{% with related_status.book|book_title as book_title %}
|
|
|
|
{% with related_status.local_path as related_path %}
|
|
|
|
|
|
|
|
{% if related_status.status_type == 'Review' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
|
2021-10-15 20:36:48 +00:00
|
|
|
liked your <a href="{{ related_path }}">review of <em>{{ book_title }}</em></a>
|
2021-10-02 16:50:48 +00:00
|
|
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% elif related_status.status_type == 'Comment' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
|
2021-10-15 20:36:48 +00:00
|
|
|
liked your <a href="{{ related_path }}">comment on<em>{{ book_title }}</em></a>
|
2021-10-02 16:50:48 +00:00
|
|
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% elif related_status.status_type == 'Quotation' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
|
2021-10-15 20:36:48 +00:00
|
|
|
liked your <a href="{{ related_path }}">quote from <em>{{ book_title }}</em></a>
|
2021-10-02 16:50:48 +00:00
|
|
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% else %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
|
2021-10-15 20:36:48 +00:00
|
|
|
liked your <a href="{{ related_path }}">status</a>
|
2021-10-02 16:50:48 +00:00
|
|
|
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endwith %}
|
|
|
|
{% endwith %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block preview %}
|
|
|
|
<div class="notification py-2 {% if notification.id in unread %}is-primary is-light{% else %}has-background-white has-text-grey-dark{% endif %}">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-clipped">
|
|
|
|
{% include 'snippets/status_preview.html' with status=related_status %}
|
|
|
|
</div>
|
|
|
|
<div class="column is-narrow has-grey-dark">
|
|
|
|
{{ related_status.published_date|timesince }}
|
|
|
|
{% include 'snippets/privacy-icons.html' with item=related_status %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|