Show related networks in web-WHOIS output for an AS
This commit is contained in:
parent
7c5ddfc6ee
commit
dc144fba79
|
@ -15,6 +15,24 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{% include "whoisdb/handle_table.html" with object=object %}
|
{% 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>
|
||||||
</div>
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
{% load handletags %}
|
{% load handletags %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include "whoisdb/handle_panel.html" with object=object %}
|
{% include "whoisdb/handle_panel.html" with object=object showRelated=True %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue