Skip to content

Commit

Permalink
HB2-79 fix checkpoint altitude display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Hofstetter committed Oct 16, 2020
1 parent 725e7db commit 60b4c9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homebytwo/templates/routes/route/_route_checkpoint.html
Expand Up @@ -5,8 +5,8 @@
{% if type != "Checkpoint" %}<h3 class="mrgt-">{{ type }}</h3>{% endif %}
<div class="grid grid--tight">
<div class="w-2/3 sm-w-4/5 grid__item place__name">
{{ place.name|default:'Unknown place' }}
{% if place %}, {{ altitude|floatformat:0|intcomma }}m{% endif %}
{{ place.name|default:'Unknown place' }}{% if place %},
{{ altitude|floatformat:0|intcomma }}m{% endif %}
</div>
<div class="w-1/3 sm-w-1/5 grid__item text-right">
{{ schedule|duration:'hike' }}
Expand Down
2 changes: 1 addition & 1 deletion homebytwo/templates/routes/route/_route_schedule.html
Expand Up @@ -11,7 +11,7 @@ <h2 class="h3">Route Schedule</h2>
<li class="box box--default box--tight mrgv- pdg- ">No checkpoint along the route.</li>
{% endfor %}
{# finish place #}
{% include "routes/route/_route_checkpoint.html" with type="Finish" place=route.end_place altitude=get_end_altitude.m schedule=route.get_total_duration distance=route.get_total_distance.km elevation_gain=route.get_total_elevation_gain.m elevation_loss=route.get_total_elevation_loss.m %}
{% include "routes/route/_route_checkpoint.html" with type="Finish" place=route.end_place altitude=route.get_end_altitude.m schedule=route.get_total_duration distance=route.get_total_distance.km elevation_gain=route.get_total_elevation_gain.m elevation_loss=route.get_total_elevation_loss.m %}
</ul>
{% include "routes/route/_route_edit_button.html" %}
</section>

0 comments on commit 60b4c9c

Please sign in to comment.