remove commas from sets' names
[wolnelektury.git] / wolnelektury / templates / catalogue / book_mini_box.html
index 43ca2a5..830c08e 100755 (executable)
@@ -1,18 +1,23 @@
-{% load i18n %}
 {% load thumbnail %}
 <div class="book-mini-box">
     <a href="{{ book.get_absolute_url }}">
-        <img src="
-            {% thumbnail book.cover "216x288" as thumb %}
-                {{ thumb.url }}
-            {% empty %}
-                {{ book.cover.url }}
-            {% endthumbnail %}
-        " alt="{% trans "Book cover" %}" />
-        {% for author in authors %}
-            <div class="mono author">{{ author }}</div>
-            {{ book.title }}
-        {% endfor %}
+        {% if book.cover %}
+            <img src="
+                {% thumbnail book.cover "139x193" as thumb %}
+                    {{ thumb.url }}
+                {% empty %}
+                    {{ book.cover.url }}
+                {% endthumbnail %}
+            " alt="Cover" />
+        {% endif %}
+        <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>