{% include "networks/network/_hosts_table.html" %}
{% if groups %}
{% for group in groups %}
{{ group.name }}
{{ group.host_set.count }}
{{ group.rules.count }}
{% endfor %}
{% else %}
{% endif %}
{% if cas %}
{% include "networks/network/_cas_table.html" %}
{% else %}
{% endif %}
{% if templates %}
{% for template in templates %}
{{ template.name }}
{% if template.is_lighthouse %}
Lighthouse
{% endif %}
{% if template.is_relay %}
Relay
{% endif %}
{% if not template.is_lighthouse and not template.is_relay %}
Client
{% endif %}
{% if template.expires_at %}
{% if template.expires_at < now %}
Expired
{% else %}
Expires {{ template.expires_at|date:"M j, Y" }}
{% endif %}
{% else %}
Active
{% endif %}
{% if not template.reusable %}
{% if template.usage_count > 0 %}
Used
{% else %}
Single Use
{% endif %}
{% elif template.usage_limit %}
{{ template.usage_count }}/{{ template.usage_limit }} uses
{% else %}
{{ template.usage_count }} uses
{% endif %}
{% if template.ephemeral_peers %}
Yes
{% else %}
No
{% endif %}