forked from expo/troggle
Fix URL links and better name display
This commit is contained in:
parent
deec330990
commit
8484f26ee9
@ -22,9 +22,22 @@ Coordinate systems in Austria are explained in:<br>
|
|||||||
<tr><th>Cave</th><th>Entrance</th><th>Easting</th><th>Northing</th><th>tag</th><th>tag exact</th><th>tag other</th><th>slug</th></tr>
|
<tr><th>Cave</th><th>Entrance</th><th>Easting</th><th>Northing</th><th>tag</th><th>tag exact</th><th>tag other</th><th>slug</th></tr>
|
||||||
{% for ent in ents %}
|
{% for ent in ents %}
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left"><a href="/cave/{{ent.cached_primary_slug}}">
|
<td style="text-align:left">
|
||||||
{% for c in ent.cavelist %}{{c.official_name|safe}}{% endfor %}</a></td>
|
{% for c in ent.cavelist %}
|
||||||
<td style="text-align:left">{{ent.name|safe}}</td>
|
<a href="/{{c.url}}">
|
||||||
|
{% if c.official_name %}
|
||||||
|
{{c.official_name|safe}}
|
||||||
|
{% else %}
|
||||||
|
Unnamed: <em>{{c|safe}}</em>
|
||||||
|
{% endif %}</a><br>
|
||||||
|
{% endfor %}</td>
|
||||||
|
<td style="text-align:left">
|
||||||
|
{% if ent.name %}
|
||||||
|
{{ent.name|safe}}
|
||||||
|
{% else %}
|
||||||
|
Unnamed: <em>{{ent|safe}}</em>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td style="text-align:right">{{ent.easting|floatformat:2}}</td>
|
<td style="text-align:right">{{ent.easting|floatformat:2}}</td>
|
||||||
<td style="text-align:right">{{ent.northing|floatformat:2}}</td>
|
<td style="text-align:right">{{ent.northing|floatformat:2}}</td>
|
||||||
<td style="text-align:right">{{ent.tag_station}}</td>
|
<td style="text-align:right">{{ent.tag_station}}</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user