moviewyrm/bookwyrm/templates/snippets/book_titleby.html

9 lines
311 B
HTML
Raw Normal View History

{% load i18n %}
{% load bookwyrm_tags %}
2020-04-02 02:38:07 +00:00
{% 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>
2020-04-02 02:38:07 +00:00
{% endif %}