From 1595c503ff4b1de3e5908e3283546d5e24df7326 Mon Sep 17 00:00:00 2001 From: apache Date: Mon, 19 Dec 2016 17:16:16 +0300 Subject: [PATCH] hide another top menu --- project/templates/base.html | 2 ++ project/templates/menu/menu.html | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/project/templates/base.html b/project/templates/base.html index bebfd80..ab94845 100644 --- a/project/templates/base.html +++ b/project/templates/base.html @@ -89,9 +89,11 @@ {% block top_menu %} {% endblock %} diff --git a/project/templates/menu/menu.html b/project/templates/menu/menu.html index 9de1ab4..d5b41fe 100644 --- a/project/templates/menu/menu.html +++ b/project/templates/menu/menu.html @@ -11,7 +11,9 @@ {% url 'customer_profile_view' as customer_profile_view %} {% url 'customer_clients_list' as customer_clients_list %} -{% if user.is_anonymous %} +{# if user.is_authenticated #} + +{% if not user.is_authenticated %} {% for child in children|slice:":4" %}
  • {{ child.get_menu_title }} @@ -38,7 +40,7 @@ {% endif %}
  • Другие документы -{% if user.is_anonymous %} +{% if not user.is_authenticated %}