From 5c1bf22146ac06a9a50fd92312a30819b9a95655 Mon Sep 17 00:00:00 2001 From: Gena Date: Tue, 16 Jun 2015 12:51:51 +0600 Subject: [PATCH] auto --- batiskaf/templates/jinja2/category.jinja | 6 +++++- batiskaf/templates/jinja2/product.jinja | 9 ++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/batiskaf/templates/jinja2/category.jinja b/batiskaf/templates/jinja2/category.jinja index b43e0a2..457b93e 100644 --- a/batiskaf/templates/jinja2/category.jinja +++ b/batiskaf/templates/jinja2/category.jinja @@ -1,6 +1,10 @@ {% extends 'base.jinja' %} {% block title %} + {% if category %} {{ category.title }}{% for parent in category.get_parents() %} > {{ parent.title }}{% endfor %} + {% else %} + Поиск по запросу {{ request.GET['q'] }} + {% endif %} {% endblock %} {% block content %}