Skip to content

Commit

Permalink
don't add class in nav_link if there is not one
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 17, 2012
1 parent f0ffe08 commit 61d8558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -285,7 +285,7 @@ def _nav_link(text, controller, **kwargs):
url_for(controller=controller, **kwargs),
class_=('active' if
c.controller == controller and c.action in highlight_actions
else '')
else None)
)

def nav_named_link(*args, **kwargs):
Expand Down

0 comments on commit 61d8558

Please sign in to comment.