changeset 2905:b031a33366c9

Correcting Global Url issue #455
author prakhar126 <prakhar126@gmail.com>
date Wed, 04 Mar 2015 18:21:27 +0530
parents ac10a2e3eaf6
children 39179f10d76e
files MoinMoin/templates/index.html
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/index.html	Fri Feb 13 21:14:01 2015 +0100
+++ b/MoinMoin/templates/index.html	Wed Mar 04 18:21:27 2015 +0530
@@ -68,10 +68,6 @@
         {{ self.action_bars_inner() }}
 {% endblock %}
 
-{% macro entry_anchor(type, e) -%}
-    index-{{ type }}-{{ e.meta['itemid'] }}
-{%- endmacro %}
-
 {% set maxchars = 16 %}
 
 {% macro render_file_entry(e) %}
@@ -88,7 +84,7 @@
            {{ e.relname|truncate(maxchars, true, '..') }}
         </a>
         {% if e in dirs %}
-            <a href="#{{ entry_anchor('dir', e) }}"
+            <a href="{{ url_for('.index', item_name=e.fullname) }}"
                title="{{ _("This item also has subitems that match your filter.") }}">↓
             </a>
         {% endif %}