moviewyrm/bookwyrm/templates/snippets/book_titleby.html
2021-02-28 17:10:30 -08:00

7 lines
286 B
HTML

{% load i18n %}
{% if book.authors %}
{% blocktrans with path=book.local_path title=book.title %}<a href="{{ path }}">{{ title }}</a> by {% endblocktrans %}{% include 'snippets/authors.html' with book=book %}
{% else %}
<a href="{{ book.local_path }}">{{ book.title }}</a>
{% endif %}