mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
SHow editions link on all book pages
This commit is contained in:
parent
997a671cfb
commit
26f0501e2f
1 changed files with 11 additions and 3 deletions
|
@ -208,9 +208,17 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if book.parent_work.editions.count > 1 %}
|
{% with work=book.parent_work %}
|
||||||
<p>{% blocktrans with path=book.parent_work.local_path count=book.parent_work.editions.count %}<a href="{{ path }}/editions">{{ count }} editions</a>{% endblocktrans %}</p>
|
<p>
|
||||||
{% endif %}
|
<a href="{{ work.local_path }}/editions">
|
||||||
|
{% blocktrans trimmed count counter=work.editions.count with count=work.editions.count|intcomma %}
|
||||||
|
{{ count }} edition
|
||||||
|
{% plural %}
|
||||||
|
{{ count }} editions
|
||||||
|
{% endblocktrans %}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# user's relationship to the book #}
|
{# user's relationship to the book #}
|
||||||
|
|
Loading…
Reference in a new issue