[b6dba6]: Allura / allura / templates / jinja_master / top_nav.html Maximize Restore History

Download this file

top_nav.html    19 lines (18 with data), 608 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{% if c.project %}
{% for s in c.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 %}
{% else %}
{% if s.url in request.upath_info or c.project.neighborhood.url()+'_admin' in request.upath_info %}
<span class="diamond"></span>
{% endif %}
{% endif %}
</a>
{% endfor %}
<div style="clear:both"></div>
{% endif %}