From 4787f7a02db68f5ec54f631735fb42f93bd2b007 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Mon, 26 Sep 2016 17:20:55 +0200 Subject: [PATCH] Hide the page card if the page is not in the menu --- app/templates/pages/custompage.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/templates/pages/custompage.html b/app/templates/pages/custompage.html index a6eca743..5fb5144a 100644 --- a/app/templates/pages/custompage.html +++ b/app/templates/pages/custompage.html @@ -56,9 +56,11 @@ {% if childrens %}
{% for children in childrens %} - {% with children as object %} - {% include "pages/includes/page_card.html" %} - {% endwith %} + {% if children.in_menu %} + {% with children as object %} + {% include "pages/includes/page_card.html" %} + {% endwith %} + {% endif %} {% endfor %}
{% endif %} -- 2.39.5