diff --git a/lib/aprsme_web/live/info_live/show.html.heex b/lib/aprsme_web/live/info_live/show.html.heex index 863834c..3ecee2f 100644 --- a/lib/aprsme_web/live/info_live/show.html.heex +++ b/lib/aprsme_web/live/info_live/show.html.heex @@ -1,3 +1,16 @@ + + + +
@@ -171,9 +184,30 @@
+ + + <%= if @packet && @packet.lat && @packet.lon do %> +
+
+ <% {symbol_table, symbol_code} = AprsmeWeb.AprsSymbol.extract_from_packet(@packet) %> + <% symbol_html = AprsmeWeb.AprsSymbol.render_marker_html(symbol_table, symbol_code, @callsign, 32) %> + <.info_map + id="station-location-map" + lat={Aprsme.EncodingUtils.to_float(@packet.lat)} + lon={Aprsme.EncodingUtils.to_float(@packet.lon)} + callsign={@callsign} + symbol_html={symbol_html} + height="280px" + zoom={12} + /> +
+
+ <% end %> - -
+ +
+ +
@@ -251,11 +285,10 @@
-
- - - <%= if length(@other_ssids) > 0 do %> -
+ + + <%= if length(@other_ssids) > 0 do %> +
@@ -272,7 +305,7 @@
- +
@@ -353,9 +383,14 @@ - <% end %> + <% else %> + +
+ <% end %> + + - +
@@ -336,14 +369,11 @@ <%= if ssid_info.last_heard do %> -
+ {ssid_info.last_heard.time_ago} -
-
- {ssid_info.last_heard.formatted} -
+ <% else %> - {gettext("Unknown")} + {gettext("Unknown")} <% end %>