Download this file

top_nav.html    32 lines (28 with data), 838 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% if c.project %}
{% for s in c.project.grouped_navbar_entries() %}
<a href="{{s.url}}" class="ui-icon-{{s.ui_icon or 'admin'}}
{% if s.label == 'Home' %}
{% set url_length = s.url|length %}
{% if request.url.rfind(s.url, -url_length) != -1 %}
active
{#
<span class="diamond"></span>
#}
{% endif %}
{% else %}
{% if s.matches_url(request) or c.project.neighborhood.url()+'_admin' in request.upath_info %}
active
{#
<span class="diamond"></span>
#}
{% endif %}
{% endif %}">
{{s.label}}
{% set grouped_tool_count = s.matching_urls|length %}
{% if grouped_tool_count %}
<span class="tool-count">{{grouped_tool_count}}</span>
{% endif %}
</a>
{% endfor %}
<div style="clear:both"></div>
{% endif %}