Zhang Huangbin avatar Zhang Huangbin committed 0268d57

Typo in templates/default/macros/general.html.

Comments (0)

Files changed (1)

templates/default/macros/general.html

 
 
 {%- macro display_subnav(crumbs) -%}
-    {#-- crumbs = [(link, label), (link, label)] --#}
+    {# Crumb format: (link, label), ('active', link, label) #}
     {% if crumbs | length > 0 %}
         <div class="breadcrumb">
             <div class="pagesize">
                 <ul id="breadcrumb">
                     {% for crb in crumbs %}
                         <li>
-                            {% if crb[0] is not sameas none %}
-                                <a href="{{ crb[0] }}">{{ crb[1] }}</a>{% if not loop.last %}{% endif %}
-                            {% else %}
-                                <a href="#" class="inactive">{{ crb[1] }}</a>
-                            {% endif %}
+                            {%- if crb |length == 2 -%}
+                                <a href="{{ crb[0] }}">{{ crb[1] }}</a>
+                            {%- elif crb |length ==3 -%}
+                                <a href="{{ crb[1] }}" class="inactive"><strong>{{ crb[2] }}</strong></a>
+                            {%- endif -%}
+                            {% if not loop.last %}/{% endif %}
                         </li>
                     {% endfor %}
                 </ul>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.