moviewyrm/bookwyrm/templates/snippets/book_titleby.html
2021-05-20 08:09:35 -07:00

8 lines
317 B
HTML

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