comparison 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
comparison
equal deleted inserted replaced
132:88acc9c18b90 133:df2368d50468
152 @param d: parameter dictionary 152 @param d: parameter dictionary
153 @rtype: string 153 @rtype: string
154 @return: title html 154 @return: title html
155 """ 155 """
156 _ = self.request.getText 156 _ = self.request.getText
157
157 if d['title_link']: 158 if d['title_link']:
158 content = ('<a title="%(title)s" href="%(href)s">%(text)s</a>') % { 159 content = curpage = ''
160 segments = d['title_text'].split('/')
161 for s in segments[:-1]:
162 curpage += s
163 content = "%s%s/" % (content, Page(self.request, curpage).link_to(self.request, s))
164 curpage += '/'
165
166 content += ('<a class="backlink" title="%(title)s" href="%(href)s">%(text)s</a>') % {
159 'title': _('Click to do a full-text search for this title'), 167 'title': _('Click to do a full-text search for this title'),
160 'href': d['title_link'], 168 'href': d['title_link'],
161 'text': wikiutil.escape(d['title_text']), 169 'text': wikiutil.escape(segments[-1]),
162 } 170 }
163 else: 171 else:
164 content = wikiutil.escape(d['title_text']) 172 content = wikiutil.escape(d['title_text'])
173
165 html = ''' 174 html = '''
166 <h1 id="title">%s</h1> 175 <h1 id="title">%s</h1>
167 ''' % content 176 ''' % content
168 177
169 return html 178 return html