Merge pull request #353 from AndreasK79/table_striped_previous_qsos

This commit is contained in:
Andreas Kristiansen
2024-05-09 20:07:56 +02:00
committed by GitHub
3 changed files with 13 additions and 7 deletions

View File

@@ -656,7 +656,7 @@ class Logbook extends CI_Controller {
if (!empty($logbooks_locations_array) && $query->num_rows() > 0)
{
$html .= "<div class=\"table-responsive\">";
$html .= "<table class=\"table\">";
$html .= "<table class=\"table table-striped\">";
$html .= "<tr>";
$html .= "<th>Date</th>";
$html .= "<th>Callsign</th>";

View File

@@ -1,7 +1,7 @@
<div id="qso-last-table">
<div class="table-responsive" style="font-size: 0.95rem;">
<table class="table">
<table class="table table-striped">
<tr class="log_title titles">
<th><?php echo lang('general_word_date'); ?>/<?php echo lang('general_word_time'); ?></th>
<th><?php echo lang('gen_hamradio_call'); ?></th>
@@ -61,13 +61,13 @@ function echo_table_col($row, $name) {
case 'SOTA': echo '<td>' . ($row->COL_SOTA_REF) . '</td>'; break;
case 'WWFF': echo '<td>' . ($row->COL_WWFF_REF) . '</td>'; break;
case 'POTA': echo '<td>' . ($row->COL_POTA_REF) . '</td>'; break;
case 'Grid':
$ci->load->library('qra');
case 'Grid':
$ci->load->library('qra');
echo '<td>' . ($ci->qra->echoQrbCalcLink($row->COL_MY_GRIDSQUARE, $row->COL_VUCC_GRIDS, $row->COL_GRIDSQUARE)) . '</td>'; break;
case 'Distance': echo '<td>' . ($row->COL_DISTANCE ? $row->COL_DISTANCE . '&nbsp;km' : '') . '</td>'; break;
case 'Band': echo '<td>'; if($row->COL_SAT_NAME != null) { echo '<a href="https://db.satnogs.org/search/?q='.$row->COL_SAT_NAME.'" target="_blank">'.$row->COL_SAT_NAME.'</a></td>'; } else { echo strtolower($row->COL_BAND); } echo '</td>'; break;
case 'Frequency':
$ci->load->library('frequency');
case 'Frequency':
$ci->load->library('frequency');
echo '<td>'; if($row->COL_SAT_NAME != null) { echo '<a href="https://db.satnogs.org/search/?q='.$row->COL_SAT_NAME.'" target="_blank">'.$row->COL_SAT_NAME.'</a></td>'; } else { if($row->COL_FREQ != null) { echo $ci->frequency->hz_to_mhz($row->COL_FREQ); } else { echo strtolower($row->COL_BAND); } } echo '</td>'; break;
case 'State': echo '<td>' . ($row->COL_STATE) . '</td>'; break;
case 'Operator': echo '<td>' . ($row->COL_OPERATOR) . '</td>'; break;

View File

@@ -694,7 +694,13 @@
<div id="partial_view" style="font-size: 0.95rem;"></div>
<div id="qso-last-table" hx-get="<?php echo site_url('/qso/component_past_contacts'); ?>" hx-trigger="load, qso_event, every 5s">
<?php
$result = $this->optionslib->get_option('disable_refresh_past_contacts');
if($result === null) { ?>
<div id="qso-last-table" hx-get="<?php echo site_url('/qso/component_past_contacts'); ?>" hx-trigger="load, qso_event, every 5s">
<?php } else { ?>
<div id="qso-last-table" hx-get="<?php echo site_url('/qso/component_past_contacts'); ?>" hx-trigger="load, qso_event">
<?php } ?>
</div>
</div>