From f4b0b2869cb7f88fc5a3a9a83dc33a71003a4035 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Thu, 3 Mar 2022 10:39:16 +0100 Subject: [PATCH] add templates to render sections and items in the admin menu --- CHANGELOG.md | 1 + templates/admin/menu.html.twig | 27 +++++++-------------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5281b73..25f63d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [Unreleased] ### Added +* add templates to render sections and items in the admin menu ### Fixed * fix the analytic table when a path is a long ### Changed diff --git a/templates/admin/menu.html.twig b/templates/admin/menu.html.twig index 08f4f93..97c6237 100644 --- a/templates/admin/menu.html.twig +++ b/templates/admin/menu.html.twig @@ -1,27 +1,14 @@ -{% import "@Core/admin/macros/menu.html.twig" as macros_menu %} - {# {% if is_granted('ROLE_WRITER') %} - + {{ include('@Core/admin/module/_menu_section.html.twig', {label: 'Blog'}) }} {% endif %} #}