2021-10-15 21:10:34 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
|
|
|
|
|
|
|
{% with user_path=status.user.local_path username=status.user.display_name book_path=status.book.local_poth book_title=book|book_title %}
|
|
|
|
|
|
|
|
{% if status.status_type == 'GeneratedNote' %}
|
2021-11-10 10:37:16 +00:00
|
|
|
{% if status.content == 'wants to read' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<a href="{{ user_path}}">{{ username }}</a> wants to read <a href="{{ book_path }}">{{ book_title }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
{% if status.content == 'finished reading' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<a href="{{ user_path}}">{{ username }}</a> finished reading <a href="{{ book_path }}">{{ book_title }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
{% if status.content == 'started reading' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<a href="{{ user_path}}">{{ username }}</a> started reading <a href="{{ book_path }}">{{ book_title }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
2021-10-15 21:10:34 +00:00
|
|
|
{% elif status.status_type == 'Rating' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<a href="{{ user_path}}">{{ username }}</a> rated <a href="{{ book_path }}">{{ book_title }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% elif status.status_type == 'Review' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<a href="{{ user_path}}">{{ username }}</a> reviewed <a href="{{ book_path }}">{{ book_title }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% elif status.status_type == 'Comment' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<a href="{{ user_path}}">{{ username }}</a> commented on <a href="{{ book_path }}">{{ book_title }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% elif status.status_type == 'Quotation' %}
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
<a href="{{ user_path}}">{{ username }}</a> quoted <a href="{{ book_path }}">{{ book_title }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endwith %}
|