diff --git a/public_html/index.html b/public_html/index.html
index 8147c6a..c7aac03 100644
--- a/public_html/index.html
+++ b/public_html/index.html
@@ -218,7 +218,7 @@
| With Positions: n/a |
- UAT Message Rate: n/a |
+ UAT Message Rate: n/a |
| Position History: n/a |
diff --git a/public_html/script.js b/public_html/script.js
index 7f566f1..038f7c0 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -1307,8 +1307,13 @@ function refreshSelected() {
$('#dump1090_message_rate').text(MessageRate.toFixed(1) + '/sec');
}
- if (UatMessageRate !== null) {
- $('#uat_message_rate').text(UatMessageRate.toFixed(1) + '/sec');
+ if (UAT_Enabled) {
+ $('#uat_message_rate_row').show();
+ if (UatMessageRate !== null) {
+ $('#uat_message_rate').text(UatMessageRate.toFixed(1) + '/sec');
+ }
+ } else {
+ $('#uat_message_rate_row').hide();
}
setSelectedInfoBlockVisibility();
@@ -1692,10 +1697,16 @@ function refreshTableInfo() {
// ICAO doesn't change
if (tableplane.flight) {
tableplane.tr.cells[2].innerHTML = getFlightAwareModeSLink(tableplane.icao, tableplane.flight, tableplane.flight);
+ tableplane.tr.cells[2].className = "ident_normal";
+ } else if (tableplane.registration !== null) {
+ // Show registration with special styling if ident is not present
+ tableplane.tr.cells[2].innerHTML = getFlightAwareIdentLink(tableplane.registration, tableplane.registration);
+ tableplane.tr.cells[2].className = "ident_fallback";
} else {
- // Show _registration if ident is not present
- tableplane.tr.cells[2].innerHTML = (tableplane.registration !== null ? getFlightAwareIdentLink(tableplane.registration, '_' + tableplane.registration) : "");
- }
+ tableplane.tr.cells[2].innerHTML = "";
+ tableplane.tr.cells[2].className = "";
+ }
+
tableplane.tr.cells[3].textContent = (tableplane.registration !== null ? tableplane.registration : "");
tableplane.tr.cells[4].textContent = (tableplane.icaotype !== null ? tableplane.icaotype : "");
tableplane.tr.cells[5].textContent = (tableplane.squawk !== null ? tableplane.squawk : "");
@@ -2424,7 +2435,7 @@ function getFlightAwareIdentLink(ident, linkText) {
if (!linkText) {
linkText = ident;
}
- return "" + linkText + "";
+ return " " + linkText + "";
}
return "";
diff --git a/public_html/style.css b/public_html/style.css
index e3eb58e..c2a4327 100644
--- a/public_html/style.css
+++ b/public_html/style.css
@@ -239,6 +239,7 @@ div#loader { z-index: 99; position: absolute; left: 0; top: 0; bottom: 0; right:
background-color: #002F5D;
color: #FFFFFF;
cursor: pointer;
+ white-space: nowrap;
}
.aircraft_table_header td {
font-size: smaller;
@@ -271,6 +272,9 @@ div#loader { z-index: 99; position: absolute; left: 0; top: 0; bottom: 0; right:
cursor: pointer;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
+
+.ident_normal { font-weight: normal; font-style: normal; }
+.ident_fallback { font-weight: bold; font-style: italic; }
.hidden { display: none; }
.infoblock_heading { font-size: larger; }
@@ -950,4 +954,4 @@ select.error, textarea.error, input.error {
.ui-resizable {
min-width: 400px;
-}
\ No newline at end of file
+}