diff --git a/templates/whoisdb/handle_panel.html b/templates/whoisdb/handle_panel.html index 4b8db9a..b4fcf96 100644 --- a/templates/whoisdb/handle_panel.html +++ b/templates/whoisdb/handle_panel.html @@ -15,6 +15,24 @@
{% include "whoisdb/handle_table.html" with object=object %} + + + {% if showRelated %} + {% comment %}Show related objects{% endcomment %} + {% if object.getClassName == "ASNumber" %} + {% if object.inetnum_set.all %} +
Networks originating from this AS
+ + + {% endif %} + {% endif %} + {% endif %} + +
{% endwith %} diff --git a/templates/whoisdb/handle_show.html b/templates/whoisdb/handle_show.html index 0d12a43..b79bfa2 100644 --- a/templates/whoisdb/handle_show.html +++ b/templates/whoisdb/handle_show.html @@ -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 %}