From 079de6d7b845cfc2938c913795a1ef743f3a36cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Sat, 6 Sep 2008 19:34:40 +0200 Subject: [PATCH] Added showing list of children books on book detail page. --- templates/catalogue/book_detail.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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