mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-13 10:49:23 +00:00
Only use first publish date if publisher is unknown
This commit is contained in:
parent
2c968e94cb
commit
ec2c5cb546
|
@ -58,12 +58,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% with date=book.published_date|default:book.first_published_date|naturalday publisher=book.publishers|join:', ' %}
|
{% with date=book.published_date|default:book.first_published_date|naturalday publisher=book.publishers|join:', ' %}
|
||||||
{% if date and publisher %}
|
{% if book.published_date and publisher %}
|
||||||
{% blocktrans %}Published {{ date }} by {{ publisher }}.{% endblocktrans %}
|
{% blocktrans %}Published {{ date }} by {{ publisher }}.{% endblocktrans %}
|
||||||
{% elif date %}
|
|
||||||
{% blocktrans %}Published {{ date }}{% endblocktrans %}
|
|
||||||
{% elif publisher %}
|
{% elif publisher %}
|
||||||
{% blocktrans %}Published by {{ publisher }}.{% endblocktrans %}
|
{% blocktrans %}Published by {{ publisher }}.{% endblocktrans %}
|
||||||
|
{% elif date %}
|
||||||
|
{% blocktrans %}Published {{ date }}{% endblocktrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue