# HG changeset patch # User osimons # Date 1248601544 0 # Node ID 1e01ab1acd60d7ea7838e464d05e7b6750c399bf # Parent f9d17a0ee407c27a60d4c9949391f48a3be5ba5b 0.6dev: Fix highlighting for active navigation. Closes #343. diff --git a/bitten/web_ui.py b/bitten/web_ui.py --- a/bitten/web_ui.py +++ b/bitten/web_ui.py @@ -76,12 +76,7 @@ # INavigationContributor methods def get_active_navigation_item(self, req): - """Called by Trac to determine which navigation item should be marked - as active. - - :param req: the request object - """ - return 'build' + pass def get_navigation_items(self, req): """Return the navigation item for access the build status overview from @@ -130,7 +125,15 @@ class BuildConfigController(Component): """Implements the web interface for build configurations.""" - implements(IRequestHandler, IRequestFilter) + implements(IRequestHandler, IRequestFilter, INavigationContributor) + + # INavigationContributor methods + + def get_active_navigation_item(self, req): + return 'build' + + def get_navigation_items(self, req): + return [] # IRequestHandler methods