add tooltip (tlite) to POD button
[wolnelektury.git] / src / catalogue / templates / catalogue / book_short.html
index 0cba65c..edd9f6b 100644 (file)
@@ -2,6 +2,7 @@
   {% load i18n %}
   {% load catalogue_tags %}
   {% load book_shelf_tags from social_tags %}
+  {% load static %}
 
   <div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
     <div class="book-box-inner">
           <div class="title">
             {% if main_link %}<a href="{{ main_link }}">{% endif %}{{ book.title }}{% if main_link %}</a>{% endif %}
           </div>
+          {% if book.translator %}
+              <div class="author">
+                  tłum. {{ book.translator }}
+              </div>
+          {% endif %}
         </div>
 
         <div class="cover-area">
           {% if book.html_file %}
             <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
           {% endif %}
+          {% if book.print_on_demand %}
+            <a href="{{ book.ridero_link }}" class="downarrow print tlite-tooltip" title="{% trans "Cena książki w druku cyfrowym jest zależna od liczby stron.<br>Przed zakupem upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia.<br>Wszystkie nasze zasoby w wersji elektronicznej są zawsze dostępne bezpłatnie." %}">{% trans "Print on demand –" %}
+                <img src="{% static 'img/ridero.png' %}" style="height: 0.8em;"/></a>
+          {% endif %}
         </li>
         <li class="book-box-download">
           <a class="downarrow">{% trans "Download" %}:</a>