{% if neighborhood and neighborhood.neighborhood_project %} {% for s in neighborhood.neighborhood_project.sitemap() %} {{s.label}} {% if s.label == 'Home' %} {% set url_length = s.url|length %} {% if request.url.rfind(s.url, -url_length) != -1 %} {% endif %} {% elif s.label == 'Admin' %} {% if s.url in request.url or c.project.neighborhood.url()+'_admin' in request.url %} {% endif %} {% else %} {% if s.url in request.url %} {% endif %} {% endif %} {% endfor %}
{% endif %}