diff --git a/netbox/netbox/views.py b/netbox/netbox/views.py index 0e0b9e50c..6aec89701 100644 --- a/netbox/netbox/views.py +++ b/netbox/netbox/views.py @@ -13,7 +13,7 @@ from circuits.tables import CircuitSearchTable, ProviderSearchTable from dcim.filters import DeviceFilter, DeviceTypeFilter, RackFilter, SiteFilter from dcim.models import ConsolePort, Device, DeviceType, InterfaceConnection, PowerPort, Rack, Site from dcim.tables import DeviceSearchTable, DeviceTypeSearchTable, RackSearchTable, SiteSearchTable -from extras.models import UserAction +from extras.models import TopologyMap, UserAction from ipam.filters import AggregateFilter, IPAddressFilter, PrefixFilter, VLANFilter, VRFFilter from ipam.models import Aggregate, IPAddress, Prefix, VLAN, VRF from ipam.tables import AggregateSearchTable, IPAddressSearchTable, PrefixSearchTable, VLANSearchTable, VRFSearchTable @@ -148,6 +148,7 @@ def home(request): return render(request, 'home.html', { 'search_form': SearchForm(), 'stats': stats, + 'topology_maps': TopologyMap.objects.filter(site__isnull=True), 'recent_activity': UserAction.objects.select_related('user')[:50] }) diff --git a/netbox/templates/dcim/site.html b/netbox/templates/dcim/site.html index 4b1c4afdc..b1d0fb194 100644 --- a/netbox/templates/dcim/site.html +++ b/netbox/templates/dcim/site.html @@ -224,7 +224,7 @@ {% for rg in rack_groups %} - + {% endfor %} @@ -257,7 +257,7 @@
{{ rg.name }} {{ rg.name }} {{ rg.rack_count }}
{% for tm in topology_maps %} - + {% endfor %} diff --git a/netbox/templates/home.html b/netbox/templates/home.html index 15965b13f..b657bf598 100644 --- a/netbox/templates/home.html +++ b/netbox/templates/home.html @@ -48,6 +48,20 @@ + {% if perms.secrets %} +
+
+ Secrets +
+
+
+ {{ stats.secret_count }} +

Secrets

+

Sensitive data (such as passwords) which has been stored securely

+
+
+
+ {% endif %}
@@ -101,20 +115,25 @@
- {% if perms.secrets %} -
-
- Secrets -
-
-
- {{ stats.secret_count }} -

Secrets

-

Sensitive data (such as passwords) which has been stored securely

-
-
+
+
+ Global Topology Maps
- {% endif %} + {% if topology_maps %} +
{{ tm }} {{ tm }} {{ tm.description }}
+ {% for tm in topology_maps %} + + + + + {% endfor %} +
{{ tm }}{{ tm.description }}
+ {% else %} +
+ None +
+ {% endif %} +
Recent Activity