upgrade views, menus, routing

This commit is contained in:
2014-11-07 13:19:07 +01:00
parent 9d313dd68f
commit 2a3ebb3659
6 changed files with 63 additions and 133 deletions

View File

@@ -1,12 +1,12 @@
<div class="columns four">
<ul class="tab-nav follow-href-path">
{% for menu in menu_composer.getRoutesFor(menu) %}
{% for route in routes %}
<li class="{% spaceless %}
{% if menu.route == activeRouteKey %}
{% if route.key == activeRouteKey %}
active
{% endif %}
{% endspaceless %} ">
<a href="{{ path(menu.route, args) }}" >{{ menu.label|trans }}</a>
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
</li>
{% endfor %}