allow to show menu entries without icons

This commit is contained in:
Julien Fastré 2018-04-27 13:36:34 +02:00
parent 93be3de45f
commit 050a4ff031

View File

@ -25,7 +25,7 @@
</div>
<ul class="submenu width-11-em">
{% for route in routes %}
<li><a href="{{ path(route.key, args ) }}" style="font-family: 'Open Sans'; font-weight:300; font-size: 0.9em;"><i class="fa fa-{{ route.icon }}"></i> {{ route.label|trans }}</a></li>
<li><a href="{{ path(route.key, args ) }}" style="font-family: 'Open Sans'; font-weight:300; font-size: 0.9em;">{% if route.icon is defined %}<i class="fa fa-{{ route.icon }}"></i> {% endif %}{{ route.label|trans }}</a></li>
{% endfor %}
</ul>
</li>