changeset 2686:5cfec4b90170

Now shortened fqname is shown in trail in basic theme similar to that of modernized theme
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Fri, 01 Aug 2014 17:58:58 +0530
parents 19747e4214f4
children daf1dbbf507c
files MoinMoin/themes/basic/templates/layout.html
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/layout.html	Fri Aug 01 17:56:29 2014 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Fri Aug 01 17:58:58 2014 +0530
@@ -130,25 +130,25 @@
                         <ul class="moin-breadcrumb">
                         {% set trail_items = theme_supp.path_breadcrumbs() %}
                         {% if trail_items %}
-                            {% for wiki_name, item_name, item_href, exists, err in trail_items %}
+                            {% for wiki_name, fqname, item_href, exists, err in trail_items %}
                             {% if not loop.last %}
                                 <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 }}
+                                            {{ fqname|shorten_fqname }}
                                         </a>
                                         <i class="icon-double-angle-right icon-fixed-width"></i>
                                     {%- else -%}
-                                        <a href="{{ url_for('frontend.show_item', item_name=item_name) }}"{{ " " }}
+                                        <a href="{{ url_for('frontend.show_item', item_name=fqname) }}"{{ " " }}
                                             {% if not exists -%}class="moin-nonexistent"{%- endif -%}>
-                                            {{ item_name|shorten_item_name }}
+                                            {{ fqname|shorten_fqname }}
                                         </a>
                                         <i class="icon-double-angle-right icon-fixed-width"></i>
                                     {%- endif %}
                                     <ul class="moin-bcs-subitems">
-                                        {% for fq_name in theme_supp.get_fqnames(item_name) -%}
+                                        {% for fq_name in theme_supp.get_fqnames(fqname) -%}
                                             <li>
                                                 <a href="{{ url_for('frontend.show_item', item_name=fq_name) }}">
                                                     {{ fq_name|shorten_fqname(length=25) }}
@@ -181,7 +181,7 @@
                                     {% endfor %}
                                     </h4>
                                     <ul class="moin-bcs-subitems">
-                                        {% for fq_name in theme_supp.get_fqnames(item_name) -%}
+                                        {% for fq_name in theme_supp.get_fqnames(fqname) -%}
                                             <li>
                                                 <a href="{{ url_for('frontend.show_item', item_name=fq_name) }}">
                                                     {{ fq_name|shorten_fqname(length=25) }}