Skip to content

Commit

Permalink
Merge pull request #306 from okfn/306-header-link-icon-qs
Browse files Browse the repository at this point in the history
?icon=None in links that use h.url_for with the icon attribute
  • Loading branch information
johnmartin committed Jan 30, 2013
2 parents 90b04f1 + 22ec8c1 commit 9584ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -322,11 +322,11 @@ def _create_link_text(text, **kwargs):
kwargs '''
if kwargs.pop('inner_span', None):
text = literal('<span>') + text + literal('</span>')
icon = kwargs.pop('icon', None)
if icon:
text = literal('<i class="icon-large icon-%s"></i> ' % icon) + text
return text

icon = kwargs.pop('icon', None)
class_ = _link_class(kwargs)
return link_to(
_create_link_text(text, **kwargs),
Expand Down

0 comments on commit 9584ee3

Please sign in to comment.