Improving the templates refs closed #628 #627

This commit is contained in:
Marc Ducobu
2015-10-23 13:21:52 +02:00
parent aabcb85f37
commit 69a970cd14
6 changed files with 111 additions and 96 deletions

View File

@@ -20,19 +20,18 @@
Layout for a vertical menu (like admin, export) to use with the
layout ../layoutWithVerticalMenu.html.twig.
#}
<div class="grid-4">
<ul class="tab-nav follow-href-path">
<li class="title">
{% block v_menu_title %}<!-- title of the verticalMenu is empty -->{% endblock %}
<ul class="tab-nav follow-href-path">
<li class="title">
{% block v_menu_title %}<!-- title of the verticalMenu is empty -->{% endblock %}
</li>
{% for route in routes %}
<li class="{% spaceless %}
{% if route.key == activeRouteKey %}
active
{% endif %}
{% endspaceless %} ">
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
</li>
{% for route in routes %}
<li class="{% spaceless %}
{% if route.key == activeRouteKey %}
active
{% endif %}
{% endspaceless %} ">
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</ul>