File diff 421171af6c75 → c8d79d2d0e3e
conntrackt/templates/admin/conntrackt/communication/change_list.html
Show inline comments
 
@@ -3,12 +3,14 @@
 
{% load admin_urls %}
 

	
 
{% block object-tools-items %}
 
            <li>
 
              {# Add the GET parameters from the admin's filter to 'Add entity' button #}
 
              {# so we can perform some filtering on source/destination interfaces. #}
 
              <a href="{% url cl.opts|admin_urlname:'add' %}?{% if is_popup %}_popup=1{% endif %}{% if 'location' in cl.params %}&amp;location={{ cl.params.location }}{% endif %}{% if 'project' in cl.params %}&amp;project={{ cl.params.project }}{% endif %}" class="addlink">
 
    {% if has_add_permission %}
 
        <li>
 
            {# Add the GET parameters from the admin's filter to 'Add entity' button #}
 
            {# so we can perform some filtering on source/destination interfaces. #}
 
            <a href="{% url cl.opts|admin_urlname:'add' %}?{% if is_popup %}_popup=1{% endif %}{% if 'location' in cl.params %}&amp;location={{ cl.params.location }}{% endif %}{% if 'project' in cl.params %}&amp;project={{ cl.params.project }}{% endif %}" class="addlink">
 
                {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
 
              </a>
 
            </li>
 
            </a>
 
        </li>
 
    {% endif %}
 
{% endblock %}