From d8b2ec5288a498ebf969dbee026a15545df77975 Mon Sep 17 00:00:00 2001 From: Gena Date: Mon, 8 Jun 2015 19:19:49 +0600 Subject: [PATCH] no message --- batiskaf/templates/jinja2/base.jinja | 10 +++++++--- batiskaf/templates/jinja2/index.jinja | 2 ++ main/views.py | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/batiskaf/templates/jinja2/base.jinja b/batiskaf/templates/jinja2/base.jinja index e433945..3c497e5 100644 --- a/batiskaf/templates/jinja2/base.jinja +++ b/batiskaf/templates/jinja2/base.jinja @@ -114,19 +114,23 @@
- {% for child in category.get_childs_ordered_by_count() %} + {% for child in category.get_childs_ordered_by_count()|batch(3) %}
+ {% for col in child %}
  • {{ child.title }} + href="{{ col.get_absolute_url() }}">{{ col.title }}
  • - {% for child2 in child.childs.all() %} + {% for child2 in col.childs.all() %}
  • {{ child2.title }}
  • {% endfor %}
+ {% endfor %} + +
{% endfor %} diff --git a/batiskaf/templates/jinja2/index.jinja b/batiskaf/templates/jinja2/index.jinja index 1be8b22..4835067 100644 --- a/batiskaf/templates/jinja2/index.jinja +++ b/batiskaf/templates/jinja2/index.jinja @@ -1,5 +1,7 @@ {% extends 'base.jinja' %} {% block content %} + +