diff --git a/netbox/netbox/views.py b/netbox/netbox/views.py index a88361e3f..e0ce6803c 100644 --- a/netbox/netbox/views.py +++ b/netbox/netbox/views.py @@ -2,6 +2,7 @@ from django.shortcuts import render from circuits.models import Provider, Circuit from dcim.models import Site, Rack, Device, ConsolePort, PowerPort, InterfaceConnection +from extras.models import UserAction from ipam.models import Aggregate, Prefix, IPAddress, VLAN from secrets.models import Secret @@ -35,6 +36,7 @@ def home(request): return render(request, 'home.html', { 'stats': stats, + 'recent_activity': UserAction.objects.all()[:20] }) diff --git a/netbox/templates/home.html b/netbox/templates/home.html index d22c31e83..ccdb2cbd2 100644 --- a/netbox/templates/home.html +++ b/netbox/templates/home.html @@ -79,6 +79,20 @@ + {% if perms.secrets %} +
Sensitive data (such as passwords) which has been stored securely
+Sensitive data (such as passwords) which has been stored securely
-{{ a.time|date:"Y-m-d H:i" }} | +{{ a.user }} | +{{ a.message|safe }} | +