2021-08-09 01:40:47 +00:00
|
|
|
{% spaceless %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
2021-08-16 20:39:56 +00:00
|
|
|
{% load status_display %}
|
2021-08-09 01:40:47 +00:00
|
|
|
|
2021-08-16 20:39:56 +00:00
|
|
|
{% load_book status as book %}
|
2022-01-12 18:35:02 +00:00
|
|
|
{% if book.authors.exists %}
|
|
|
|
|
|
|
|
{% with author=book.authors.first %}
|
|
|
|
{% blocktrans trimmed with book_path=book.local_path book=book|book_title author_name=author.name author_path=author.local_path %}
|
|
|
|
wants to read <a href="{{ book_path }}">{{ book }}</a> by <a href="{{ author_path }}">{{ author_name }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
{% endwith %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% blocktrans trimmed with book_path=book.local_path book=book|book_title %}
|
|
|
|
wants to read <a href="{{ book_path }}">{{ book }}</a>
|
|
|
|
{% endblocktrans %}
|
|
|
|
|
|
|
|
{% endif %}
|
2021-08-09 01:40:47 +00:00
|
|
|
{% endspaceless %}
|