Implements some more items for the navigation bar.
| 71 | |
| 72 | |
| 73 | class CustomNavigationBar(Component): |
| 74 | """Implements some more items for the navigation bar.""" |
| 75 | |
| 76 | implements(INavigationContributor) |
| 77 | |
| 78 | def get_active_navigation_item(self, req): |
| 79 | return "custom_reports" |
| 80 | |
| 81 | def get_navigation_items(self, req): |
| 82 | return [ |
| 83 | ( |
| 84 | "mainnav", |
| 85 | "custom_reports", |
| 86 | tag.a("Reports", href=req.href.wiki("Reports")), |
| 87 | ), |
| 88 | ] |
| 89 | |
| 90 | |
| 91 | class CustomSubNavigationBar(Component): |
nothing calls this directly
no outgoing calls
no test coverage detected