mirror of
https://github.com/sdr-enthusiasts/docker-planefence.git
synced 2025-12-22 11:17:06 +00:00
add last change time of alertlist to PA webpage
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
<summary style="font-weight: 900; font: 14px/1.4 'Helvetica Neue', Arial, sans-serif;">Executive Summary</summary>
|
||||
<ul>
|
||||
<li>Last update: ##LASTUPDATE##
|
||||
<li>Click <a href="##ALERTLIST##" target="_blank">here</a> for the list of monitored aircraft
|
||||
<li>Click <a href="##ALERTLIST##" target="_blank">here</a> for the list of monitored aircraft. This list was last updated on ##ALERTLISTUPDATE##.
|
||||
<li>Right-click <a href="##CONCATLIST##" target="_blank">this link</a> to save a CSV version of the table below.
|
||||
<li>Aircraft are listed in reverse chronological order. Click the header of a column to resort.
|
||||
<li>Note that for each aircraft, only the first observation of the day is listed. Additional flights, if any, can be seen on the Flight Map link (ICAO field).
|
||||
|
||||
@@ -831,6 +831,7 @@ sed -i "s|##NAME##|$NAME|g" "$TMPDIR"/plalert-index.tmp
|
||||
sed -i "s|##ADSBLINK##|$ADSBLINK|g" "$TMPDIR"/plalert-index.tmp
|
||||
sed -i "s|##LASTUPDATE##|$LASTUPDATE|g" "$TMPDIR"/plalert-index.tmp
|
||||
sed -i "s|##ALERTLIST##|$ALERTLIST|g" "$TMPDIR"/plalert-index.tmp
|
||||
sed -i "s|##ALERTLISTUPDATE##|$(stat -c "%y" /usr/share/planefence/persist/.internal/plane-alert-db.txt | sed 's/\.[0-9]*//')|g" "$TMPDIR"/plalert-index.tmp
|
||||
sed -i "s|##CONCATLIST##|$CONCATLIST|g" "$TMPDIR"/plalert-index.tmp
|
||||
sed -i "s|##HISTTIME##|$HISTTIME|g" "$TMPDIR"/plalert-index.tmp
|
||||
sed -i "s|##BUILD##|$([[ -f /usr/share/planefence/branch ]] && cat /usr/share/planefence/branch || cat /root/.buildtime)|g" "$TMPDIR"/plalert-index.tmp
|
||||
|
||||
Reference in New Issue
Block a user