Added link to document index content view to navigate the tree upwards

This commit is contained in:
Roberto Rosario
2011-07-04 02:21:07 -04:00
parent b8ba3ef70f
commit b323a37596
3 changed files with 13 additions and 3 deletions

View File

@@ -90,7 +90,8 @@ def resolve_links(context, links, current_view, current_path, parsed_query_strin
kwargs = {}
if 'view' in link:
new_link['active'] = link['view'] == current_view
if not link.get('dont_mark_active', False):
new_link['active'] = link['view'] == current_view
try:
if kwargs:
@@ -103,7 +104,9 @@ def resolve_links(context, links, current_view, current_path, parsed_query_strin
new_link['url'] = '#'
new_link['error'] = err
elif 'url' in link:
new_link['active'] = link['url'] == current_path
if not link.get('dont_mark_active', False):
new_link['active'] = link['url'] == current_path
if kwargs:
new_link['url'] = link['url'] % kwargs
else: