X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7e890833260e5aef8ae217d195309b76fa91c02f..f906193db2ec44590f57beae2e8ee2df76117b7b:/wolnelektury/templates/catalogue/book_detail.html diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html index 660bf2602..c47e2176d 100644 --- a/wolnelektury/templates/catalogue/book_detail.html +++ b/wolnelektury/templates/catalogue/book_detail.html @@ -4,6 +4,8 @@ {% block title %}{{ book.title }} {% trans "on WolneLektury.pl" %}{% endblock %} +{% block metadescription %}{% book_title book %}. {{ block.super }}{% endblock %} + {% block bodyid %}book-detail{% endblock %} {% block body %} @@ -37,25 +39,35 @@
{% trans "Put a book" %} {% trans "on the shelf!" %}
+{% trans "Put a book" %} {% trans "on the shelf!" %}
 {% endif %}
-                    {% if book.root_ancestor.epub_file %}
-
                     {% endif %}
-                    {% if book.root_ancestor.epub_file %}
-                         +                    {% if book.epub_file %}
+
+                    {% if book.epub_file %}
+                         +                    {% endif %}
+                    {% if book.mobi_file %}
+
+                    {% endif %}
+                    {% if book.mobi_file %}
+                         {% endif %}
-                    {% if book.has_txt_file %}
+                    {% if book.txt_file %}
                     {% endif %}
-                    {% if book.has_txt_file %}
+                    {% if book.txt_file %}
                          {% endif %}
-                    {% for media in book.get_odt %}
-
                     {% endif %}
-                    {% for media in book.get_odt %}
-                         -                    {% endfor %}
+			
+                    {% if book.pdf_file %}
+
-                    {% endfor %}
+			
+                    {% if book.pdf_file %}
+			@@ -101,8 +113,32 @@ {% endif %}
{% blocktrans with 'CzytamySÅuchajÄ c' as cs %}Audiobooks were prepared as a part of the {{ cs }} project.{% endblocktrans %} -
+ {% if projects|length > 1 %} +{% trans "Audiobooks were prepared as a part of the projects:" %}
++ {% with projects.0.0 as cs %} + {% with projects.0.1 as fb %} + {% if fb %} + {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project funded by {{ fb }}.{% endblocktrans %} + {% else %} + {% blocktrans %}Audiobooks were prepared as a part of the {{ cs }} project.{% endblocktrans %} + {% endif %} + {% endwith %} + {% endwith %} +
+ {% endif %} {% endif %}