mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-08 16:29:24 +00:00
indicate author type when it's not "author" in UI
This commit is contained in:
parent
e02fcd17e9
commit
8edea0dbe5
|
@ -10,7 +10,8 @@
|
|||
{% with remainder_count=book.authors.count|add:subtraction_value %}
|
||||
{% with remainder_count_display=remainder_count|intcomma %}
|
||||
|
||||
{% for author in book.authors.all|slice:limit %}
|
||||
{% for book_author in book.bookauthor_set.all|slice:limit %}
|
||||
{% with author=book_author.author %}
|
||||
<a
|
||||
href="{{ author.local_path }}"
|
||||
class="author {{ link_class }}"
|
||||
|
@ -19,11 +20,12 @@
|
|||
itemtype="https://schema.org/Thing"
|
||||
><span
|
||||
itemprop="name"
|
||||
>{{ author.name }}</span></a>{% if not forloop.last %}, {% elif remainder_count > 0 %}, {% blocktrans trimmed count counter=remainder_count %}
|
||||
>{{ author.name }}</span></a>{% if book_author.author_type != "author" %} ({{ book_author.author_type }}){% endif %}{% if not forloop.last %}, {% elif remainder_count > 0 %}, {% blocktrans trimmed count counter=remainder_count %}
|
||||
and {{ remainder_count_display }} other
|
||||
{% plural %}
|
||||
and {{ remainder_count_display }} others
|
||||
{% endblocktrans %}{% endif %}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
|
||||
{% endwith %}
|
||||
|
|
Loading…
Reference in a new issue