diff MoinMoin/theme/__init__.py @ 133:df2368d50468

added location breadcrumbs imported from: moin--main--1.5--patch-135
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 23 Oct 2005 14:20:39 +0000
parents 2fba84615be7
children 6a19d2b98493
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sun Oct 23 12:59:10 2005 +0000
+++ b/MoinMoin/theme/__init__.py	Sun Oct 23 14:20:39 2005 +0000
@@ -154,14 +154,23 @@
         @return: title html
         """
         _ = self.request.getText
+
         if d['title_link']:
-            content = ('<a title="%(title)s" href="%(href)s">%(text)s</a>') % {
+            content = curpage = ''
+            segments = d['title_text'].split('/')
+            for s in segments[:-1]:
+                curpage += s
+                content = "%s%s/" % (content, Page(self.request, curpage).link_to(self.request, s))
+                curpage += '/'
+
+            content += ('<a class="backlink" title="%(title)s" href="%(href)s">%(text)s</a>') % {
                 'title': _('Click to do a full-text search for this title'),
                 'href': d['title_link'],
-                'text': wikiutil.escape(d['title_text']),
+                'text': wikiutil.escape(segments[-1]),
                 }
         else:
             content = wikiutil.escape(d['title_text'])
+
         html = '''
 <h1 id="title">%s</h1>
 ''' % content