changeset 2252:ecd43cdbb9b6

breadcrubms now show up titles properly.
author Ashutosh Singla <ashu1461@gmail.com>
date Tue, 27 Aug 2013 19:11:15 +0530
parents 22d1b58d785f
children 46b74c363c6f
files MoinMoin/templates/layout.html MoinMoin/themes/__init__.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/layout.html	Sat Aug 24 15:52:53 2013 +0530
+++ b/MoinMoin/templates/layout.html	Tue Aug 27 19:11:15 2013 +0530
@@ -71,7 +71,7 @@
         <span id="moin-pagelocation">
             <span class="moin-pagepath">
             {% block pagepath %}
-                {% for segment_name, segment_path, exists in theme_supp.location_breadcrumbs(fq_name) -%}
+                {% for segment_name, segment_path, exists in theme_supp.location_breadcrumbs(fqname) -%}
                     {% if not loop.last -%}
                         <a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>
                             {{ segment_name|shorten_fqname }}
--- a/MoinMoin/themes/__init__.py	Sat Aug 24 15:52:53 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Tue Aug 27 19:11:15 2013 +0530
@@ -96,10 +96,10 @@
         namespace = fqname.namespace
         fq_current = CompositeName(u'', NAME_EXACT, namespace)
         fq_segment = CompositeName(u'', NAME_EXACT, namespace or '~')
-        breadcrumbs.append((CompositeName(fq_segment, fq_current, False)))
+        breadcrumbs.append((fq_segment, fq_current, False))
         item_name = fqname.value
         if not item_name:
-            return breadcrumbs if namespace else []
+            return breadcrumbs
         for segment in item_name.split('/'):
             current_item += segment
             fq_current = CompositeName(namespace, NAME_EXACT, current_item)