Parent: [73e345] (diff)

Child: [ddf08c] (diff)

Download this file

neigh_top_nav.html    23 lines (22 with data), 807 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% if neighborhood and neighborhood.neighborhood_project %}
{% for s in neighborhood.neighborhood_project.sitemap() %}
<a href="{{s.url}}" class="ui-icon-{{s.ui_icon or 'admin'}}">
{{s.label}}
{% if s.label == 'Home' %}
{% set url_length = s.url|length %}
{% if request.url.rfind(s.url, -url_length) != -1 %}
<span class="diamond"></span>
{% endif %}
{% elif s.label == 'Admin' %}
{% if s.url in request.url or c.project.neighborhood.url()+'_admin' in request.url %}
<span class="diamond"></span>
{% endif %}
{% else %}
{% if s.url in request.url %}
<span class="diamond"></span>
{% endif %}
{% endif %}
</a>
{% endfor %}
<div style="clear:both"></div>
{% endif %}