changeset 2319:61c9d0f302ea

adds breadcrumbs
author sharky93 <rishabhr123@gmail.com>
date Fri, 12 Jul 2013 21:51:21 +0530
parents 48e56f1ebd91
children 35c88bb5613a
files MoinMoin/themes/basic/templates/layout.html
diffstat 1 files changed, 26 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/layout.html	Fri Jul 12 21:16:11 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Fri Jul 12 21:51:21 2013 +0530
@@ -101,7 +101,32 @@
                     </ul>
                 </div><!--/.well -->
             </div><!--/span-->
-        </div>
+
+            <div class="span10">
+                <ul class="breadcrumb">
+                    {% set trail_items = theme_supp.path_breadcrumbs() %}
+                    {% if trail_items %}
+                        {% for wiki_name, item_name, item_href, exists, err in trail_items %}
+                          <li>
+                            {%- if wiki_name -%}
+                                <a href="{{ item_href }}"{{ " " }}
+                                   title="{{ wiki_name }}"
+                                   class="{% if err %}moin-badinterwiki{% else %}moin-interwiki{% endif %}">
+                                   {{ item_name|shorten_item_name }}
+                                </a>
+                            {%- else -%}
+                                <a href="{{ url_for('frontend.show_item', item_name=item_name) }}"{{ " " }}
+                                   {% if not exists -%}class="moin-nonexistent"{%- endif -%}>
+                                   {{ item_name|shorten_item_name }}
+                                </a>
+                            {%- endif %}
+                            <span class="divider">/</span>
+                          </li>
+                        {% endfor %}
+                    {% endif %}
+                </ul>
+            </div><!--/span-->
+        </div> <!--/row-->
 
 	</div>
 {% endblock %}
\ No newline at end of file