Attachment 'bread_crumbs.patch'

Download

   1 --- orig/MoinMoin/theme/__init__.py
   2 +++ mod/MoinMoin/theme/__init__.py
   3 @@ -154,14 +154,23 @@
   4          @return: title html
   5          """
   6          _ = self.request.getText
   7 +
   8          if d['title_link']:
   9 -            content = ('<a title="%(title)s" href="%(href)s">%(text)s</a>') % {
  10 +            content = curpage = ''
  11 +            segments = d['title_text'].split('/')
  12 +            for s in segments[:-1]:
  13 +                curpage += s
  14 +                content = "%s%s/" % (content, Page(self.request, curpage).link_to(self.request, s))
  15 +                curpage += '/'
  16 +
  17 +            content += ('<a class="backlink" title="%(title)s" href="%(href)s">%(text)s</a>') % {
  18                  'title': _('Click to do a full-text search for this title'),
  19                  'href': d['title_link'],
  20 -                'text': wikiutil.escape(d['title_text']),
  21 +                'text': wikiutil.escape(segments[-1]),
  22                  }
  23          else:
  24              content = wikiutil.escape(d['title_text'])
  25 +
  26          html = '''
  27  <h1 id="title">%s</h1>
  28  ''' % content

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-02-07 23:46:15, 6.7 KB) [[attachment:backlinks.patch]]
  • [get | view] (2005-02-08 22:23:44, 1.1 KB) [[attachment:bread_crumbs.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.