from ais.ntools import datetime_to_timestamp, clean_ais_charset, clean_latitude, clean_longitude, LatLonFormatError
from ais.inputs.common import is_id4_active
from ais.inputs.stats import STATS_DIR
-from ais.inputs.config import peers_get_config
+from ais.inputs.config import peers_get_config, get_hidden_mmsi
from ais import jobrunner
from ais.djais.widgets import *
nmea = Nmea.new_from_lastinfo(strmmsi)
#if not nmea.timestamp_1 and not nmea.timestamp_5:
# raise Http404
- return render_to_response('vessel.html', {'nmea': nmea, 'form': HistoryForm()}, RequestContext(request))
+ is_hidden = mmsi in get_hidden_mmsi()
+ return render_to_response('vessel.html', {'nmea': nmea, 'is_hidden': is_hidden, 'form': HistoryForm()}, RequestContext(request))
class VesselManualInputForm(forms.Form):
ETA: {{ nmea.get_eta_str }}<br>
<br>
Sources: position by {{ nmea.get_source_1_str }}, voyage by {{ nmea.get_source_5_str }}<br>
-
+{% if is_hidden %}
+<br>
+That ship is hidden and the system is set up not to share her position with other ais web sites and peers.<br>
+{% endif %}
<br>
<br>
<a href=lastpos class=button>Position in google earth</a>