closes #2165: license icon on book page
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_short.html
index d9b5b76..f0d0ca5 100644 (file)
@@ -5,18 +5,23 @@
 <div class="book-box-inner" style="position: relative;">
 
 
-    {% if main_link %}<a href="{{ main_link }}">{% endif %}
-        {% if book.cover %}
+<div class="cover-area">
+    {% if book.cover %}
+        {% if main_link %}<a href="{{ main_link }}">{% endif %}
             <img src="
                 {% thumbnail book.cover "139x193" as thumb %}
                     {{ thumb.url }}
                 {% empty %}
                     {{ book.cover.url }}
                 {% endthumbnail %}
-            " alt="Cover" />
-        {% endif %}
-    {% if main_link %}</a>{% endif %}
-    <div class="book-box-body">
+            " alt="Cover" class="cover" />
+        {% if main_link %}</a>{% endif %}
+    {% endif %}
+    {% block cover-area-extra %}{% endblock %}
+</div>
+
+
+<div class="book-box-body">
 
 
 <div class="star {% if not request.user|likes:book %}un{% endif %}like">
              {% if  book.mobi_file %}
              <span><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</span>
              {% endif %}
+             {% if  book.fb2_file %}
+             <span><a href="{{ book.fb2_file.url}}">FB2</a> {% trans "FictionBook" %}</span>
+             {% endif %}
              {% if  book.txt_file %}
              <span><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</span>
              {% endif %}