Debug admin menu

This commit is contained in:
Marc Ducobu 2014-11-21 17:12:30 +01:00
parent 0c4e02afac
commit 45d036933e
2 changed files with 8 additions and 12 deletions

View File

@ -6,18 +6,9 @@
<h1>{{ page_title|trans }}</h1>
<ul class="two tiles admin_tiles">
{% for menu in menu_composer.getRoutesFor(menu) %}
<li class="">
<h3><a href="{{ path(menu.route, args) }}" >{{ menu.label|trans }}</a></h3>
<p>{{ menu.helper|trans|default('') }}</p>
<p><a href="{{ path(menu.route, args) }}" >{{ menu.label|trans }}</a></p>
</li>
{% endfor %}
</ul>
{{ chill_menu('admin', {
'layout': 'ChillMainBundle::Menu/admin.html.twig',
}) }}
{% endblock %}

View File

@ -0,0 +1,5 @@
<ul>
{% for route in routes %}
<li><a href="{{ path(route.key, args ) }}">{{ route.label|trans }}</a></li>
{% endfor %}
</ul>