X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9fbf0c4158a9427442171629a564e2de7780b5b7..38f324dec64ba8adffcc795095023557b8a7a39c:/wolnelektury/templates/catalogue/book_mini_box.html diff --git a/wolnelektury/templates/catalogue/book_mini_box.html b/wolnelektury/templates/catalogue/book_mini_box.html index 58abaa61d..830c08e27 100755 --- a/wolnelektury/templates/catalogue/book_mini_box.html +++ b/wolnelektury/templates/catalogue/book_mini_box.html @@ -3,19 +3,21 @@ <a href="{{ book.get_absolute_url }}"> {% if book.cover %} <img src=" - {% thumbnail book.cover "216x288" as thumb %} + {% thumbnail book.cover "139x193" as thumb %} {{ thumb.url }} {% empty %} {{ book.cover.url }} {% endthumbnail %} " alt="Cover" /> {% endif %} - {% for author in authors %} - <div class="desc"> - <span class="mono author">{{ author }}</span> - <span class="title">{{ book.title }}</span> - </div> - {% endfor %} + <div class="desc"> + <span class="mono author"> + {% for name, url in related.tags.author %} + {{ name }}{% if not forloop.last %}, {% endif %} + {% endfor %} + </span> + <span class="title">{{ book.title }}</span> + </div> </a> </div>