Skip to content

Commit

Permalink
parent
Browse files Browse the repository at this point in the history
  • Loading branch information
kdudkov committed Feb 9, 2023
1 parent 3c5c3bc commit 60f8396
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
18 changes: 10 additions & 8 deletions cmd/goatak_server/templates/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,22 +140,24 @@ <h5 v-on:click="mapToUnit(current_unit)" class="col-9">
<b>Type:</b> {{current_unit.type}} <b>SIDC:</b> {{current_unit.sidc}}
</div>
<div>
<b>coords:</b> {{printCoords(current_unit.lat, current_unit.lon)}}
<b>coords:</b> {{ printCoords(current_unit.lat, current_unit.lon) }}
<span class="badge rounded-pill bg-success" style="cursor:default;"
v-on:click="map.setView([current_unit.lat, current_unit.lon])"><i
class="bi bi-geo"></i></span>
<span v-if="coords != null">({{ distBea(latlng(current_unit.lat, current_unit.lon), coords) }} to cursor)</span>
</div>
<b>speed:</b> {{sp(current_unit.speed)}} km/h, <b>hae:</b> {{current_unit.hae.toFixed(1)}}<br/>
<div v-if="ne(current_unit.tak_version)"><b>ver:</b> {{current_unit.tak_version}}</div>
<div v-if="ne(current_unit.parent_uid)"><b>parent:</b> {{current_unit.parent_uid}}
<b>speed:</b> {{ sp(current_unit.speed) }} km/h,
<b>hae:</b> {{ current_unit.hae.toFixed(1) }}<br/>
<div v-if="ne(current_unit.tak_version)"><b>ver:</b> {{ current_unit.tak_version }}</div>
<div v-if="ne(current_unit.parent_uid)"><b>parent:</b> {{ current_unit.parent_uid }}
<span v-if="ne(current_unit.parent_callsign)">({{ current_unit.parent_callsign }})</span>
</div>
<div>
<b>time:</b> {{dt(current_unit.start_time)}} <b>stale:</b>
{{dt(current_unit.stale_time)}}<br/>
<b>last seen</b>: {{dt(current_unit.last_seen)}}
<b>time:</b> {{ dt(current_unit.start_time) }} <b>stale:</b>
{{ dt(current_unit.stale_time) }}<br/>
<b>last seen</b>: {{ dt(current_unit.last_seen) }}
</div>
{{current_unit.text}}
{{ current_unit.text }}
</div>
</div>
</div>
Expand Down
19 changes: 11 additions & 8 deletions cmd/webclient/templates/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,22 +152,25 @@ <h5 v-on:click="mapToUnit(current_unit)" class="col-9">
<b>Type:</b> {{current_unit.type}} <b>SIDC:</b> {{current_unit.sidc}}
</div>
<div>
<b>coords:</b> {{printCoords(current_unit.lat, current_unit.lon)}}
<b>coords:</b> {{ printCoords(current_unit.lat, current_unit.lon) }}
<span class="badge rounded-pill bg-success" style="cursor:default;"
v-on:click="map.setView([current_unit.lat, current_unit.lon])"><i
class="bi bi-geo"></i></span>
<span v-if="coords != null">({{ distBea(latlng(current_unit.lat, current_unit.lon), coords) }} to cursor)</span>
</div>
<b>speed:</b> {{sp(current_unit.speed)}} km/h, <b>hae:</b> {{current_unit.hae.toFixed(1)}}<br/>
<div v-if="ne(current_unit.tak_version)"><b>ver:</b> {{current_unit.tak_version}}</div>
<div v-if="ne(current_unit.parent_uid)"><b>parent:</b> {{current_unit.parent_uid}}
<b>speed:</b> {{ sp(current_unit.speed) }} km/h,
<b>hae:</b> {{ current_unit.hae.toFixed(1) }}<br/>
<div v-if="ne(current_unit.tak_version)"><b>ver:</b> {{ current_unit.tak_version }}</div>
<div v-if="ne(current_unit.parent_uid)"><b>parent:</b> {{ current_unit.parent_uid }}
<span v-if="ne(current_unit.parent_callsign)">({{ current_unit.parent_callsign }})</span>
</div>
<div>
<b>time:</b> {{dt(current_unit.start_time)}} <b>send:</b> {{dt(current_unit.send_time)}} <b>stale:</b>
{{dt(current_unit.stale_time)}}<br/>
<b>last seen</b>: {{dt(current_unit.last_seen)}}
<b>time:</b> {{ dt(current_unit.start_time) }} <b>send:</b> {{ dt(current_unit.send_time) }}
<b>stale:</b>
{{ dt(current_unit.stale_time) }}<br/>
<b>last seen</b>: {{ dt(current_unit.last_seen) }}
</div>
{{current_unit.text}}
{{ current_unit.text }}
</div>
</div>
</div>
Expand Down

0 comments on commit 60f8396

Please sign in to comment.