changeset 2232:d182f8db14b7

Solves issue #16.
author Ashutosh Singla <ashu1461@gmail.com>
date Sun, 04 Aug 2013 00:29:16 +0530
parents a1407ecf4082
children f1c374ca25ac
files MoinMoin/items/__init__.py MoinMoin/templates/layout.html
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Mon Jul 29 11:48:27 2013 +0530
+++ b/MoinMoin/items/__init__.py	Sun Aug 04 00:29:16 2013 +0530
@@ -745,7 +745,8 @@
         show_navigation = False  # TODO
         first_rev = last_rev = None  # TODO
         return render_template(self.show_template,
-                               item=self, item_name=self.fqname.fullname,
+                               item=self, item_name=self.name,
+                               fqname=self.fqname,
                                rev=self.rev,
                                contenttype=self.contenttype,
                                first_rev_id=first_rev,
--- a/MoinMoin/templates/layout.html	Mon Jul 29 11:48:27 2013 +0530
+++ b/MoinMoin/templates/layout.html	Sun Aug 04 00:29:16 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(item_name) -%}
+                {% for segment_name, segment_path, exists in theme_supp.location_breadcrumbs(fq_name) -%}
                     {% 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 }}