From d2aa1ef04414c70a28d43d9809c1f1fa63a02c8f Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 25 Feb 2025 14:50:22 -0300 Subject: [PATCH] auto indent lines --- templates/wireguard/wireguard_peer_list.html | 360 +++++++++---------- 1 file changed, 180 insertions(+), 180 deletions(-) diff --git a/templates/wireguard/wireguard_peer_list.html b/templates/wireguard/wireguard_peer_list.html index 59d59b1..e961c8a 100644 --- a/templates/wireguard/wireguard_peer_list.html +++ b/templates/wireguard/wireguard_peer_list.html @@ -1,10 +1,10 @@ {% extends "base.html" %} {% block page_custom_head %} - + {% endblock %} @@ -244,208 +244,208 @@ + if (latestHandshake === '0') { + calloutDiv.classList.add('callout-danger'); + } else if (handshakeAge < 600) { + calloutDiv.classList.add('callout-success'); + } else if (handshakeAge < 1800) { + calloutDiv.classList.add('callout-info'); + } else if (handshakeAge < 21600) { + calloutDiv.classList.add('callout-warning'); + } + calloutDiv.style.transition = 'all 5s'; + }; +