file copied from conntrackt/templatetags/conntrackt.py to conntrackt/templatetags/conntrackt_tags.py
# Import Django's template library.
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()
@register.inclusion_tag('conntrackt/html_link.html')
def html_link(text, view, *args, **kwargs):
"""
@@ -51,6 +51,7 @@ def html_link(text, view, *args, **kwarg
return context
@register.simple_tag
def iptables(communication):
@@ -70,6 +71,7 @@ def iptables(communication):
return rule_template % values
@register.simple_tag(takes_context = True)
def active_link(context, url_name, return_value='active', **kwargs):