1f9ca85bce5322abc7263c6657c3102b12d60da9
[ais.git] / html_templates / vessels.html
1 {% extends "vessel_index.html" %}
2
3 {% load ais_extras %}
4
5 {% block breadcrumbs %}
6 {{ block.super }}
7 / <a href="/vessel/search">search</a>
8 {% endblock %}
9
10 {% block content %}
11 <h3>Vessel search results</h3>
12 {% if vessels %}
13 <table>
14 <tr>
15   <th>Name
16   <th>MMSI
17   <th>IMO
18   <th>Callsign
19 {% for vessel in vessels %}
20 <tr>
21   <td><a href='/vessel/{{vessel.mmsi|sqlmmsi_to_strmmsi}}/'>{{ vessel.name }}</a>
22   <td><a href='/vessel/{{vessel.mmsi|sqlmmsi_to_strmmsi}}/'>{{ vessel.mmsi|sqlmmsi_to_strmmsi }}</a>
23   <td>{{ vessel.imo|default_if_none:""}}
24   <td>{{ vessel.callsign }}
25 {% endfor %}
26 </table>
27 {% else %}
28 <p>No result.
29 <p>
30 <a href="javascript:history.go(-1)" class=button>Try again</a>
31 {% endif %}
32 {% endblock %}