Display all authors names in shelf, like on all other pages (#202)

This commit is contained in:
OzzieIsaacs
2017-07-08 13:50:21 +02:00
parent aed626b91b
commit 2929d95b26
2 changed files with 15 additions and 6 deletions
+8 -3
View File
@@ -22,9 +22,14 @@
</div>
<div class="meta">
<p class="title">{{entry.title|shortentitle}}</p>
{% if entry.authors|length > 0 %}
<p class="author"><a href="{{url_for('author', book_id=entry.authors[0].id) }}">{{entry.authors[0].name}}</a></p>
{% endif %}
<p class="author">
{% for author in entry.authors %}
<a href="{{url_for('author', book_id=author.id) }}">{{author.name}}</a>
{% if not loop.last %}
&amp;
{% endif %}
{% endfor %}
</p>
{% if entry.ratings.__len__() > 0 %}
<div class="rating">
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}