moviewyrm/bookwyrm/templates/snippets/book_titleby.html
2021-08-04 12:36:54 -07:00

15 lines
372 B
HTML

{% load i18n %}
{% load utilities %}
{% spaceless %}
{% if book.authors %}
{% 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 %}
{% endspaceless %}