mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Moved object header templates into object base templates
This commit is contained in:
@@ -945,6 +945,7 @@ class DeviceInventoryView(View):
|
||||
return render(request, 'dcim/device_inventory.html', {
|
||||
'device': device,
|
||||
'inventory_items': inventory_items,
|
||||
'active_tab': 'inventory',
|
||||
})
|
||||
|
||||
|
||||
@@ -957,6 +958,7 @@ class DeviceStatusView(PermissionRequiredMixin, View):
|
||||
|
||||
return render(request, 'dcim/device_status.html', {
|
||||
'device': device,
|
||||
'active_tab': 'status',
|
||||
})
|
||||
|
||||
|
||||
@@ -975,6 +977,7 @@ class DeviceLLDPNeighborsView(PermissionRequiredMixin, View):
|
||||
return render(request, 'dcim/device_lldp_neighbors.html', {
|
||||
'device': device,
|
||||
'interfaces': interfaces,
|
||||
'active_tab': 'lldp-neighbors',
|
||||
})
|
||||
|
||||
|
||||
@@ -987,6 +990,7 @@ class DeviceConfigView(PermissionRequiredMixin, View):
|
||||
|
||||
return render(request, 'dcim/device_config.html', {
|
||||
'device': device,
|
||||
'active_tab': 'config',
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user