Consisten link highlight through the project

This commit is contained in:
Roberto Rosario
2011-07-21 21:45:07 -04:00
parent 90e876ca93
commit 4060a39a4f
9 changed files with 15 additions and 11 deletions

View File

@@ -129,6 +129,10 @@ def resolve_links(context, links, current_view, current_path, parsed_query_strin
if re.compile(child_url_regex).match(current_path.lstrip('/')):
new_link['active'] = True
for children_view_regex in link.get('children_view_regex', []):
if re.compile(children_view_regex).match(current_view):
new_link['active'] = True
for cls in link.get('children_classes', []):
obj, object_name = get_navigation_object(context)
if type(obj) == cls or obj == cls: