Switch to unified view

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