From 9db7610f457c25555a8ecd14ef7beaa78c96e729 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Sat, 7 Dec 2024 18:01:19 +0100 Subject: [PATCH] Added tooltip with info about last tle update --- application/controllers/Satellite.php | 10 ++++++++++ application/views/satellite/index.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/application/controllers/Satellite.php b/application/controllers/Satellite.php index 2f3306545..ab39acb7d 100644 --- a/application/controllers/Satellite.php +++ b/application/controllers/Satellite.php @@ -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")), diff --git a/application/views/satellite/index.php b/application/views/satellite/index.php index 75f68980c..5040cc0fa 100644 --- a/application/views/satellite/index.php +++ b/application/views/satellite/index.php @@ -67,7 +67,7 @@ ?> '; if ($sat->updated != null) { - echo ''.__("Yes").''; + echo 'updated)) . '">'.__("Yes").''; } else { echo ''.__("No").''; }