changeset 160:b18ec46a7b1d

we need current page in navibar as long as unknown users have no trail or trail doesnt get updated on actions imported from: moin--main--1.5--patch-162
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 30 Oct 2005 09:44:47 +0000
parents 74bcce9d3dae
children 65efc38c4e23
files MoinMoin/theme/__init__.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sun Oct 30 09:30:18 2005 +0000
+++ b/MoinMoin/theme/__init__.py	Sun Oct 30 09:44:47 2005 +0000
@@ -363,6 +363,14 @@
                 items.append(item % (cls, link))
                 found[pagename] = 1
 
+        # Add current page at end
+        if not current in found:
+            title = d['page'].split_title(request)
+            title = self.shortenPagename(title)
+            link = d['page'].link_to(request, title)
+            cls = 'current'
+            items.append(item % (cls, link))
+
         # Assemble html
         items = u'\n'.join(items)
         html = u'''