mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added tooltip with info about last tle update
This commit is contained in:
@@ -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")),
|
||||
|
||||
@@ -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>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user