#7231 closed enhancement (fixed)
[Patch] Make label "Breadcrumbs:" configurable
Reported by: | anonymous | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | BreadCrumbsNavPlugin |
Severity: | normal | Keywords: | custom label |
Cc: | pipern | Trac Release: | 0.12 |
Description
Patch:
-
breadcrumbs.py
a b 23 23 supported_paths = ListOption('breadcrumbs', 'paths', '/wiki*,/ticket*,/milestone*', 24 24 doc='List of URL paths to allow breadcrumb tracking. Globs are supported.') 25 26 label = Option('breadcrumbs','label','Breadcrumbs:', 27 doc="""Text label to show before breadcrumb list""") 25 28 26 29 compiled_ignore_pattern = None … … 160 163 ) 161 164 162 insert = tag.ul(class_="nav", id="breadcrumbs")(tag.lh( "Breadcrumbs:"), li)165 insert = tag.ul(class_="nav", id="breadcrumbs")(tag.lh(self.label), li) 163 166 164 167 return stream | Transformer('//div[@id="metanav"]/ul').after(insert)
Attachments (0)
Change History (10)
comment:1 Changed 15 years ago by
Cc: | pipern added; anonymous removed |
---|
comment:2 follow-up: 4 Changed 14 years ago by
comment:3 Changed 14 years ago by
Summary: | Make label "Breadcrumbs:" configurable → [Patch] Make label "Breadcrumbs:" configurable |
---|
comment:4 Changed 14 years ago by
Keywords: | custom label added; patch removed |
---|
Replying to penmark:
This issue is also addressed in http://trac-hacks.org/attachment/wiki/BreadCrumbsNavPlugin/breadcrumbs.diff
Sure, thanks for the pointer.
For the sake of completeness true i18n support providing localization according to configured languages in browser might still be preferred, making the label just an additional option, overwriting i18n label/per language once and for all users.
I'll put this on top of aforementioned patch soon.
comment:5 Changed 13 years ago by
Owner: | changed from Stephen Hansen to Steffen Hoffmann |
---|---|
Status: | new → assigned |
finally and visibly taking over responsibility after official maintainership change
comment:6 Changed 13 years ago by
(In [10892]) BreadCrumbsNavPlugin: Add configurable default list label, refs #7231 and #7790.
This modified version of the change suggested by anonymous reporter of #7231 and addressed in penmark's patch will work better with coming i18n support, with the drawback, that the implicit default value isn't visible within the configuration system. At least tried to address this by extending option doc.
comment:7 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:8 Changed 13 years ago by
Should I delete the two attachments on the BreadCrumbsNavPlugin wiki page?
comment:9 follow-up: 10 Changed 13 years ago by
comment:10 Changed 13 years ago by
Replying to hasienda:
So you can clean-up that wiki page now. Thanks for the suggestion.
Cleaned-up.
This issue is also addressed in http://trac-hacks.org/attachment/wiki/BreadCrumbsNavPlugin/breadcrumbs.diff