Commit f2948e31 authored by Julien Fastré's avatar Julien Fastré

refactor menu layout to adapt to conditional menu

parent 9bdec633
Pipeline #56179 failed with stages
in 11 seconds
......@@ -105,7 +105,7 @@
{% block vertical_menu_content %}
{{ chill_menu('person', {
'layout': 'ChillPersonBundle::menu.html.twig',
'args' : {'person_id': person.id },
'args' : {'person_id': person.id, 'person': person },
'activeRouteKey': activeRouteKey
}) }}
......
......@@ -15,13 +15,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
<ul class="tab-nav">
{% for route in routes %}
<li class="{% spaceless %}
{% if route.key == activeRouteKey %}
active
{% endif %}
{% endspaceless %} ">
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans|upper }}</a>
{% for menu in menus %}
<li class="">
<a href="{{ menu.uri }}" >{{ menu.label }}</a>
</li>
{% endfor %}
</ul>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment