moviewyrm/bookwyrm/templates/snippets/book_titleby.html

16 lines
379 B
HTML
Raw Normal View History

{% load i18n %}
2021-05-11 22:14:42 +00:00
{% load utilities %}
2021-08-04 19:36:54 +00:00
{% spaceless %}
2021-09-02 15:48:53 +00:00
{% if book.authors.exists %}
2021-08-04 19:36:54 +00:00
{% 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>
2020-04-02 02:38:07 +00:00
{% endif %}
2021-08-04 19:36:54 +00:00
{% endspaceless %}