From 5c2aab01e44dd0e51e39b25a858b55ac289723f5 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Thu, 26 May 2022 10:24:45 -0400 Subject: [PATCH] Show # of commits local repo is behind by, on Sys Controls --- homepage/style.css | 12 ++++++++++++ scripts/system_controls.php | 10 ++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/homepage/style.css b/homepage/style.css index 88ac29e..f54d98d 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -687,4 +687,16 @@ dialog::backdrop { #gain.centered { margin-bottom:10px; +} + +.updatenumber { + margin-left:5px; + position:absolute; + display:inline-block; + background-color:#c8191a; + color:white; + width:20px; + line-height:20px; + border-radius:12px; + text-align:center; } \ No newline at end of file diff --git a/scripts/system_controls.php b/scripts/system_controls.php index 35e5072..6abc714 100644 --- a/scripts/system_controls.php +++ b/scripts/system_controls.php @@ -1,3 +1,9 @@ + /dev/null 2>&1 && git -C ".$home."/BirdNET-Pi status | sed -n '2 p' | cut -d ' ' -f 7")); +?>
@@ -7,12 +13,12 @@
- +
-
+