{% load render_table from django_tables2 %} {% if perms.dcim.change_devicetype %}
{% csrf_token %}
{{ title }}
{% if table.rows|length > 3 %} {% endif %} {% if table.rows|length > 10 %} Add {{ title }} {% endif %}
{% render_table table 'table.html' %}
{% else %}
{{ title }}
{% render_table table 'table.html' %}
{% endif %}