Fixes testing if authors are present
This commit is contained in:
parent
8d23f1d356
commit
3d394f96bf
|
@ -43,7 +43,7 @@
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if book.authors %}
|
{% if book.authors.exists %}
|
||||||
<div class="subtitle">
|
<div class="subtitle">
|
||||||
{% trans "by" %} {% include 'snippets/authors.html' with book=book %}
|
{% trans "by" %} {% include 'snippets/authors.html' with book=book %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
|
||||||
{% if book.authors %}
|
{% if book.authors.exists %}
|
||||||
{% blocktrans trimmed with path=book.local_path title=book|book_title %}
|
{% blocktrans trimmed with path=book.local_path title=book|book_title %}
|
||||||
<a href="{{ path }}">{{ title }}</a> by
|
<a href="{{ path }}">{{ title }}</a> by
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
Loading…
Reference in New Issue