1. Thomas Waldmann
  2. moin-2.0

Commits

Ashutosh Singla  committed 500d5d4

Proper linking withing namespaces in tags view. Also fixed similar view.

  • Participants
  • Parent commits b12a057
  • Branches default

Comments (0)

Files changed (2)

File MoinMoin/apps/frontend/views.py

View file
  • Ignore whitespace
     return render_template('sitemap.html',
                            item_name=item_name,  # XXX no item
                            sitemap=sitemap,
+                           fqname=fq_name,
     )
 
 
             rev = item[CURRENT]
         except (AccessDenied, KeyError):
             return []
-        itemlinks = split_fqname_set(rev.meta.get(ITEMLINKS, []))
+        itemlinks = set(split_fqname_list(rev.meta.get(ITEMLINKS, [])))
         return [child for child in itemlinks if self.is_ok(child)]
 
     def is_ok(self, child):

File MoinMoin/templates/global_tags.html

View file
  • Ignore whitespace
 {% if tags %}
 <ul class="moin-tags">
     {% for cls, tag in tags %}
-    <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag) }}">{{ tag }}</a></li>
+    <li class="{{ cls }}"><a href="{{ url_for('frontend.tagged_items', tag=tag, namespace=fqname.namespace) }}">{{ tag }}</a></li>
     {% endfor %}
 </ul>
 {% endif %}