{% load render_table from django_tables2 %} {% load perms %} {% load i18n %} {% if perms.netbox_dns.view_view %} {% if assigned_views %}
{% if assigned_views.rows|length == 1 %}

{% trans "Assigned DNS View" %}

{% else %}

{% trans "Assigned DNS Views" %}

{% endif %}
{% render_table assigned_views 'inc/table.html' %}
{% elif inherited_views %}
{% if inherited_views.rows|length == 1 %}

{% trans "Inherited DNS View" %}

{% else %}

{% trans "Inherited DNS Views" %}

{% endif %}
{% render_table inherited_views 'inc/table.html' %}
{% endif %} {% endif %}