Skip to content

Commit

Permalink
add some doc string for build_nav_main
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 17, 2012
1 parent 12c79ec commit 7dc043e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckan/lib/helpers.py
Expand Up @@ -352,6 +352,11 @@ def _subnav_named_route(text, routename, **kwargs):
)

def build_nav_main(*args):
''' build a set of menu items.
args: tuples of (menu type, title) eg ('login', _('Login'))
outputs <li><a href="...">title</a></li>
'''
output = ''
for item in args:
menu_item, title = item
Expand Down

0 comments on commit 7dc043e

Please sign in to comment.