Merge pull request #870 from croisez/main

Added clickable BirdNET-Pi version info in the SystemControls web page
This commit is contained in:
ehpersonal38
2023-04-22 11:22:32 -04:00
committed by GitHub
+8
View File
@@ -44,4 +44,12 @@ function update() {
<form action="" method="GET"> <form action="" method="GET">
<button type="submit" name="submit" value="sudo clear_all_data.sh" onclick="return confirm('Clear ALL Data? Note that this cannot be undone and will take up to 90 seconds.')">Clear ALL data</button> <button type="submit" name="submit" value="sudo clear_all_data.sh" onclick="return confirm('Clear ALL Data? Note that this cannot be undone and will take up to 90 seconds.')">Clear ALL data</button>
</form> </form>
<?php
$cmd="cat ".$home."/BirdNET-Pi/.git/refs/heads/main";
$curr_hash = shell_exec($cmd);
?>
<p style="font-size:11px;text-align:center"></br></br>Running version: </p>
<a href="https://github.com/mcguirepr89/BirdNET-Pi/commit/<?php echo $curr_hash; ?>" target="_blank">
<p style="font-size:11px;text-align:center;box-sizing: border-box"><?php echo $curr_hash; ?></p>
</a>
</div> </div>