Show related networks in web-WHOIS output for an AS

master
Sebastian Lohff 6 years ago
parent 7c5ddfc6ee
commit dc144fba79

@ -15,6 +15,24 @@
</div>
<div class="panel-body">
{% include "whoisdb/handle_table.html" with object=object %}
{% if showRelated %}
{% comment %}Show related objects{% endcomment %}
{% if object.getClassName == "ASNumber" %}
{% if object.inetnum_set.all %}
<h5>Networks originating from this AS</h5>
<ul>
{% for net in object.inetnum_set.all %}
<li><a href="{% url "whoisdb:showhandle" net.handle %}">{{ net }} ({{ net.prefix }})</a></li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
{% endwith %}

@ -3,6 +3,8 @@
{% load handletags %}
{% block content %}
{% include "whoisdb/handle_panel.html" with object=object %}
{% include "whoisdb/handle_panel.html" with object=object showRelated=True %}
{% endblock %}

Loading…
Cancel
Save