MCPcopy Create free account
hub / github.com/django/code.djangoproject.com / CustomNavigationBar

Class CustomNavigationBar

DjangoPlugin/tracdjangoplugin/plugins.py:73–88  ·  view source on GitHub ↗

Implements some more items for the navigation bar.

Source from the content-addressed store, hash-verified

71
72
73class 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
91class CustomSubNavigationBar(Component):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected