changeset 2710:997df35ab5d1

Now shortened fqname is shown in trail and also used fqname instead of item_name in location_breadcrumbs in foobar theme
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Fri, 08 Aug 2014 10:25:36 +0530
parents b41fae684e47
children 5f82ecf8b353
files MoinMoin/themes/foobar/templates/layout.html
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/foobar/templates/layout.html	Thu Aug 07 21:01:45 2014 +0530
+++ b/MoinMoin/themes/foobar/templates/layout.html	Fri Aug 08 10:25:36 2014 +0530
@@ -39,18 +39,18 @@
         {% if trail_items %}
         <li id="moin-trail">Trail
             <ul>
-            {% for wiki_name, item_name, item_href, exists, err in trail_items %}
+            {% for wiki_name, fqname, 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 }}
+                       {{ fqname|shorten_fqname }}
                     </a>
                 {%- 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>
                 {%- endif %}
                 </li>
@@ -118,10 +118,10 @@
         <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(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_item_name }}
+                            {{ segment_name|shorten_fqname }}
                         </a>
                         <span class="sep">/</span>
                     {% else %}
@@ -129,7 +129,7 @@
                             {{ title_name }}
                         {% else %}
                         <a href="{{ url_for('frontend.show_item', item_name=segment_path) }}" {% if not exists %}class="moin-nonexistent"{% endif %}>
-                            {{ segment_name|shorten_item_name }}
+                            {{ segment_name|shorten_fqname }}
                         </a>
                         {%- endif %}
                     {%- endif %}