changeset 2878:41f12b86b046

fix #473 basic theme page trail end overlaid when user views Global History, Subitems, etc
author RogerHaase <haaserd@gmail.com>
date Wed, 14 Jan 2015 08:22:13 -0700
parents e0afda75944f
children cfdec0c11e3d
files MoinMoin/themes/basic/templates/layout.html
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/layout.html	Wed Jan 14 07:55:17 2015 -0700
+++ b/MoinMoin/themes/basic/templates/layout.html	Wed Jan 14 08:22:13 2015 -0700
@@ -191,7 +191,7 @@
                     {% set trail_items = theme_supp.path_breadcrumbs() %}
                     {% if trail_items %}
                         {% for wiki_name, fqname, item_href, exists, err in trail_items %}
-                            {% if not loop.last %}
+                            {% if not loop.last or title_name %}
                                 <li>
                                     {%- if wiki_name -%}
                                         <a href="{{ item_href }}"{{ " " }}
@@ -216,7 +216,8 @@
                                         {%- endfor %}
                                     </ul>
                                 </li>
-                            {% else %}
+                            {% endif %}
+                            {% if loop.last %}
                                 <li>
                                     <span class="moin-big moin-location-breadcrumb">
                                         {% for segment_name, segment_path, exists in theme_supp.location_breadcrumbs(fqname) -%}