From f901d9b23fd95873e49c8b0a107567e916e350ca Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 15 Jun 2016 10:59:34 -0400 Subject: [PATCH] Improved activity log display --- netbox/templates/home.html | 191 ++++++++++++++++++------------------- 1 file changed, 93 insertions(+), 98 deletions(-) diff --git a/netbox/templates/home.html b/netbox/templates/home.html index 9609c9023..f4b731d1f 100644 --- a/netbox/templates/home.html +++ b/netbox/templates/home.html @@ -47,117 +47,112 @@
-
-
-
-
-
- DCIM -
-
-
- {{ stats.site_count }} -

Sites

-

Geographic locations

-
-
- {{ stats.rack_count }} -

Racks

-

Equipment racks, optionally organized by group

-
-
- {{ stats.device_count }} -

Devices

-

Rack-mounted network equipment, servers, and other devices

-
-
-

Connections

- {{ stats.interface_connections_count }} -

Interfaces

- {{ stats.console_connections_count }} -

Console

- {{ stats.power_connections_count }} -

Power

-
-
-
- {% if perms.secrets %} -
-
- Secrets -
-
-
- {{ stats.secret_count }} -

Secrets

-

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

-
-
-
- {% endif %} +
+
+
+ DCIM
-
-
-
- IPAM -
-
-
- {{ stats.aggregate_count }} -

Aggregates

-

Top-level IP allocations

-
-
- {{ stats.prefix_count }} -

Prefixes

-

IPv4 and IPv6 network assignments

-
-
- {{ stats.ipaddress_count }} -

IP Addresses

-

Individual IPv4 and IPv6 addresses

-
-
- {{ stats.vlan_count }} -

VLANs

-

Layer two domains, identified by VLAN ID

-
+
+
+ {{ stats.site_count }} +

Sites

+

Geographic locations

+
+
+ {{ stats.rack_count }} +

Racks

+

Equipment racks, optionally organized by group

+
+
+ {{ stats.device_count }} +

Devices

+

Rack-mounted network equipment, servers, and other devices

+
+
+

Connections

+ {{ stats.interface_connections_count }} +

Interfaces

+ {{ stats.console_connections_count }} +

Console

+ {{ stats.power_connections_count }} +

Power

+
+
+
+ {% if perms.secrets %} +
+
+ Secrets +
+
+
+ {{ stats.secret_count }} +

Secrets

+

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

-
-
- Circuits -
-
-
- {{ stats.provider_count }} -

Providers

-

Organizations which provide circuit connectivity

-
-
- {{ stats.circuit_count }} -

Circuits

-

Communication links for Internet transit, peering, and other services

-
-
+
+ {% endif %} +
+
+
+
+ IPAM +
+
+
+ {{ stats.aggregate_count }} +

Aggregates

+

Top-level IP allocations

+
+
+ {{ stats.prefix_count }} +

Prefixes

+

IPv4 and IPv6 network assignments

+
+
+ {{ stats.ipaddress_count }} +

IP Addresses

+

Individual IPv4 and IPv6 addresses

+
+
+ {{ stats.vlan_count }} +

VLANs

+

Layer two domains, identified by VLAN ID

+
+
+
+
+
+ Circuits +
+
+
+ {{ stats.provider_count }} +

Providers

+

Organizations which provide circuit connectivity

+
+
+ {{ stats.circuit_count }} +

Circuits

+

Communication links for Internet transit, peering, and other services

-
+
Recent Activity
- +
{% for a in recent_activity %} -
- - - - +
+ {{ a.icon }} {{ a.message|safe }}
+ {{ a.user }} - {{ a.time|date:"Y-m-d H:i" }} +
{% endfor %} -
{{ a.time|date:"Y-m-d H:i" }}{{ a.user }}{{ a.icon }} {{ a.message|safe }}
+