2021-03-01 01:10:30 +00:00
|
|
|
{% load i18n %}
|
2021-05-11 22:14:42 +00:00
|
|
|
{% load utilities %}
|
2022-01-05 22:33:10 +00:00
|
|
|
{% load cache %}
|
2021-08-04 19:36:54 +00:00
|
|
|
{% spaceless %}
|
2022-01-06 18:27:12 +00:00
|
|
|
|
2022-02-18 02:59:35 +00:00
|
|
|
{% get_current_language as LANGUAGE_CODE %}
|
2022-01-06 18:27:12 +00:00
|
|
|
{# 6 month cache #}
|
2022-02-18 02:59:35 +00:00
|
|
|
{% cache 15552000 titleby LANGUAGE_CODE book.id %}
|
2021-08-04 19:36:54 +00:00
|
|
|
|
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
|
2021-11-15 19:41:29 +00:00
|
|
|
{% endblocktrans %} {% include 'snippets/authors.html' with book=book limit=3 %}
|
2021-08-04 19:36:54 +00:00
|
|
|
|
2021-03-01 01:10:30 +00:00
|
|
|
{% else %}
|
2021-05-20 15:09:35 +00:00
|
|
|
<a href="{{ book.local_path }}">{{ book|book_title }}</a>
|
2020-04-02 02:38:07 +00:00
|
|
|
{% endif %}
|
2022-01-05 22:33:10 +00:00
|
|
|
|
|
|
|
{% endcache %}
|
2021-08-04 19:36:54 +00:00
|
|
|
{% endspaceless %}
|