forked from mirrors/bookwyrm
17 lines
449 B
HTML
17 lines
449 B
HTML
{% load i18n %}
|
|
{% load utilities %}
|
|
{% load cache %}
|
|
{% spaceless %}
|
|
{% cache None titleby book.id %}
|
|
|
|
{% if book.authors.exists %}
|
|
{% blocktrans trimmed with path=book.local_path title=book|book_title %}
|
|
<a href="{{ path }}">{{ title }}</a> by
|
|
{% endblocktrans %} {% include 'snippets/authors.html' with book=book limit=3 %}
|
|
|
|
{% else %}
|
|
<a href="{{ book.local_path }}">{{ book|book_title }}</a>
|
|
{% endif %}
|
|
|
|
{% endcache %}
|
|
{% endspaceless %}
|