{% load i18n mapentity_tags %}
{% if object.ispoint %}
    <tr>
        <th>{% trans "Elevation" %}</th>
        <td>{{ object.min_elevation|floatformat }}m</td>
    </tr>
{% else %}
<tr>
    <th>{{ object|verbose:"length" }}</th>
    <td>
    {# ``length`` attribute comes from AltimetryMixin and triggers #}
    <span title="{% trans "3D" %}">&#8605; {{ object.length|floatformat }}m</span>
    {# ``geom.length`` is 2D and is computed by GEOS #}
    <span title="{% trans "2D" %}">(&#8594; {{ object.geom.length|floatformat }}m)</span></td>
</tr>
<tr>
    <th>{% trans "Slope" %}</th>
    <td>{{ object.descent|floatformat }}m  +{{ object.ascent|floatformat }}m ({{ object.slope|floatformat }})</td>
</tr>
<tr>
    <th>{% trans "Elevation" %}</th>
    <td>Min: {{ object.min_elevation|floatformat }}m, Max: {{ object.max_elevation|floatformat }}m</td>
</tr>
{% endif %}
{% load i18n mapentity_tags %}
{% if object.ispoint %}
    <tr>
        <th>{% trans "Elevation" %}</th>
        <td>{{ object.min_elevation|floatformat }}m</td>
    </tr>
{% else %}
<tr>
    <th>{% trans "Length" %}</th>
    <td>
    {# ``length`` attribute comes from AltimetryMixin and triggers #}
    <span title="{% trans "3D" %}">&#8605; {{ object.length|floatformat }}m</span>
    {# ``geom.length`` is 2D and is computed by GEOS #}
    <span title="{% trans "2D" %}">(&#8594; {{ object.geom.length|floatformat }}m)</span></td>
</tr>
<tr>
    <th>{% trans "Slope" %}</th>
    <td>{{ object.descent|floatformat }}m  +{{ object.ascent|floatformat }}m ({{ object.slope|floatformat }})</td>
</tr>
<tr>
    <th>{% trans "Elevation" %}</th>
    <td>Min: {{ object.min_elevation|floatformat }}m, Max: {{ object.max_elevation|floatformat }}m</td>
</tr>
{% endif %}
Fix length label in altimetry template fragment
Fix length label in altimetry template fragment
