From: Marek Stępniowski Date: Sat, 6 Sep 2008 17:34:40 +0000 (+0200) Subject: Added showing list of children books on book detail page. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/079de6d7b845cfc2938c913795a1ef743f3a36cf?hp=7fc1680165d8334dcac541883b03776082b80ad5 Added showing list of children books on book detail page. --- diff --git a/templates/catalogue/book_detail.html b/templates/catalogue/book_detail.html index f95683c40..ff9278030 100644 --- a/templates/catalogue/book_detail.html +++ b/templates/catalogue/book_detail.html @@ -55,7 +55,18 @@ {% endif %} + + {% if book.children.all %} +
+

Utwory składające się na ten utwór:

+ {% for book in book.children.all %} +
  • {{ book.title }}
  • + {% endfor %} +
    + {% endif %} + +

    O utworze