forked from mirrors/bookwyrm
24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
{% load i18n %}
|
|
<p>
|
|
{% if book.physical_format and not book.pages %}
|
|
{{ book.physical_format | title }}
|
|
{% elif book.physical_format and book.pages %}
|
|
{% blocktrans with format=book.physical_format|title pages=book.pages %}{{ format }}, {{ pages }} pages{% endblocktrans %}
|
|
{% elif book.pages %}
|
|
{% blocktrans with pages=book.pages %}{{ pages }} pages{% endblocktrans %}
|
|
{% endif %}
|
|
</p>
|
|
{% if book.languages %}
|
|
<p>
|
|
{% blocktrans with languages=book.languages|join:", " %}{{ languages }} language{% endblocktrans %}
|
|
</p>
|
|
{% endif %}
|
|
<p>
|
|
{% if book.published_date and book.publishers %}
|
|
{% blocktrans with date=book.published_date|date:'M jS Y' publisher=book.publishers|join:', ' %}Published {{ date }} by {{ publisher }}.{% endblocktrans %}
|
|
{% elif book.published_date %}
|
|
{% blocktrans with date=book.published_date|date:'M jS Y' %}Published {{ date }}{% endblocktrans %}
|
|
{% elif book.publishers %}
|
|
{% blocktrans with publisher=book.publishers|join:', ' %}Published by {{ publisher }}.{% endblocktrans %}
|
|
{% endif %}
|
|
</p>
|