X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e6c778f6e92e584815a14d3e6a31a03a5e2ab7e1..e0f595e44766e352edfce0aaf5d32be57f448882:/src/catalogue/templates/catalogue/book_detail.html diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index 85cfcc96..3c98787c 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -10,10 +10,19 @@ {% block content %}
-

{% trans "Catalogue" %}

+

{{ book }}

+ {% with is_published=book.is_published %} + {% if is_published %} + + {% endif %} + {% if is_published %} + + {% endif %} + {% endwith %} + {% for author in book.authors.all %}
@@ -67,14 +76,70 @@ {{ book.get_priorty_display }} - {% for b in book.document_books.all %} - - {{ b }} - - {% endfor %}
+ +
+
+ Tekst +
+
+ {% for b in book.document_books.all %} + + {{ b }} + + {% empty %} + Brak tekstu. Jeśli masz źródło ze skanami, utwórz z niego tekst niżej. + {% endfor %} +
+
+ +
+
+ Audio +
+
+ {% with audio=book.audio_status.items %} + {% if audio %} + + {% for s in audio %} + + {% endfor %} +
{{ s.part }}{{ s.youtube_status }}
+ {% endif %} + {% endwith %} + +
+
+ +
+
+ Źródło +
+
+ {% for bs in book.booksource_set.all %} + + {{ bs.source }} + + {% if bs.page_start or bs.page_end %} + ({{ bs.page_start }}—{{ bs.page_end }}) + {% else %} + (całość) + {% endif %} +
+ {% csrf_token %} + +
+ {% empty %} + Brak źródła. + Możesz je dodać. + {% endfor %} +
+
+ + + {% endblock content %}