File diff 9996f5fcde31 → a5941ab6ea3b
conntrackt/templatetags/conntrackt_tags.py
Show inline comments
 
@@ -47,7 +47,7 @@ def html_link(text, view, *args, **kwarg
 
        if key in ("class", "title", "id", "get"):
 
            context[key] = value
 
        else:
 
            raise template.TemplateSyntaxError("Unknown argument for 'advhtml_link' tag: %r" % key )
 
            raise template.TemplateSyntaxError("Unknown argument for 'advhtml_link' tag: %r" % key)
 

	
 
    return context
 

	
 
@@ -89,8 +89,8 @@ def active_link(context, url_name, retur
 
    matches = current_url_equals(context, url_name, **kwargs)
 

	
 
    return return_value if matches else ''
 
 
 
 
 

	
 

	
 
def current_url_equals(context, url_name, **kwargs):
 
    """
 
    Helper function for checking if the specified URL corresponds to the current
 
@@ -124,4 +124,3 @@ def current_url_equals(context, url_name
 
                return False
 

	
 
    return matches