You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
436 B
HTML
15 lines
436 B
HTML
{% macro render_item(icon_name, page_name, target_url, label=none) %}
|
|
<li class="menu__item" id="menu-item-{{ page_name }}">
|
|
<a href="{{ target_url }}" class="menu__link{% if handler.request.path == target_url %} active{% endif %}">
|
|
{% if icon_name %}
|
|
<span class="icon icon-{{ icon_name }}"></span>
|
|
{% endif %}
|
|
{% if label %}
|
|
{{ _(label) }}
|
|
{% else %}
|
|
{{ _(page_name) }}
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% endmacro %}
|