{% if related_tunnels %}
{% load render_table from django_tables2 %}
<div class="card">
    <h5 class="card-header">
        Related VPN Tunnels
    </h5>
    <div class="card-body">
        {% render_table related_tunnels 'inc/table.html' %}
    </div>
    <div class="card-footer text-end noprint">
        <a href="{% url 'plugins:netbox_tunnels2:tunnel_add' %}?side_a_interface={{ object.pk }}&return_url={% url 'dcim:interface' pk=object.pk %}" class="btn btn-primary btn-sm">
          <i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add a VPN Tunnel
        </a>
    </div>
</div>
{% endif %}