Added tooltip with info about last tle update

This commit is contained in:
Andreas Kristiansen
2024-12-07 18:01:19 +01:00
parent 4ee8e1d87a
commit 9db7610f45
2 changed files with 11 additions and 1 deletions

View File

@@ -21,6 +21,16 @@ class Satellite extends CI_Controller {
$pageData['satellites'] = $this->satellite_model->get_all_satellites();
if($this->session->userdata('user_date_format')) {
// If Logged in and session exists
$custom_date_format = $this->session->userdata('user_date_format');
} else {
// Get Default date format from /config/wavelog.php
$custom_date_format = $this->config->item('qso_date_format');
}
$pageData['custom_date_format'] = $custom_date_format;
$footerData = [];
$footerData['scripts'] = [
'assets/js/sections/satellite.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/satellite.js")),

View File

@@ -67,7 +67,7 @@
?>
<?php echo '<td style="text-align: center; vertical-align: middle;">';
if ($sat->updated != null) {
echo '<span class="badge bg-success">'.__("Yes").'</span>';
echo '<span class="badge bg-success" data-bs-toggle="tooltip" title="Last TLE updated was ' . date($custom_date_format . " H:i", strtotime($sat->updated)) . '">'.__("Yes").'</span>';
} else {
echo '<span class="badge bg-danger">'.__("No").'</span>';
}