comparison MoinMoin/themes/basic/templates/layout.html @ 2319:61c9d0f302ea

adds breadcrumbs
author sharky93 <rishabhr123@gmail.com>
date Fri, 12 Jul 2013 21:51:21 +0530
parents 48e56f1ebd91
children 35c88bb5613a
comparison
equal deleted inserted replaced
2318:48e56f1ebd91 2319:61c9d0f302ea
99 {% endif %} 99 {% endif %}
100 100
101 </ul> 101 </ul>
102 </div><!--/.well --> 102 </div><!--/.well -->
103 </div><!--/span--> 103 </div><!--/span-->
104 </div> 104
105 <div class="span10">
106 <ul class="breadcrumb">
107 {% set trail_items = theme_supp.path_breadcrumbs() %}
108 {% if trail_items %}
109 {% for wiki_name, item_name, item_href, exists, err in trail_items %}
110 <li>
111 {%- if wiki_name -%}
112 <a href="{{ item_href }}"{{ " " }}
113 title="{{ wiki_name }}"
114 class="{% if err %}moin-badinterwiki{% else %}moin-interwiki{% endif %}">
115 {{ item_name|shorten_item_name }}
116 </a>
117 {%- else -%}
118 <a href="{{ url_for('frontend.show_item', item_name=item_name) }}"{{ " " }}
119 {% if not exists -%}class="moin-nonexistent"{%- endif -%}>
120 {{ item_name|shorten_item_name }}
121 </a>
122 {%- endif %}
123 <span class="divider">/</span>
124 </li>
125 {% endfor %}
126 {% endif %}
127 </ul>
128 </div><!--/span-->
129 </div> <!--/row-->
105 130
106 </div> 131 </div>
107 {% endblock %} 132 {% endblock %}