moviewyrm/bookwyrm/templates/snippets/book_titleby.html
2021-04-23 14:58:48 -07:00

8 lines
311 B
HTML

{% load i18n %}
{% load bookwyrm_tags %}
{% 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 %}