File diff 9296d8c23a54 → f397b9db8183
conntrackt/templatetags/conntrackt_tags.py
Show inline comments
 
# Import Django's template library.
 
# Django imports.
 
from django import template
 
# Import for determining the active URL.
 
from django.core import urlresolvers
 

	
 

	
 
# Get an instance of Django's template library.
 
register = template.Library()
 

	
 
@@ -72,7 +72,7 @@ def iptables(communication):
 
    return rule_template % values
 

	
 

	
 
@register.simple_tag(takes_context = True)
 
@register.simple_tag(takes_context=True)
 
def active_link(context, url_name, return_value='active', **kwargs):
 
    """
 
    This template tag can be used to check if the provided URL matches against