{% extends "places/base.html" %}{% load molly_maps %}{% load molly_utils %}{% load i18n %} {% block content %}

{% blocktrans with entity.title as entity and type as type %}Directions to {{ entity }} (by {{ type }}){% endblocktrans %}

{% trans 'Show directions for: ' %} {% for type in allowed_types %} {% comment %} the non-breaking space is to combat a bug in slimmer, where it is over zealous in removing the spaces between the a tags {% endcomment %} {{ type }}  {% endfor %} {% include "geolocation/update_location_embed.html" %}
{% if entity.location %} {% if route.error %}
{% trans 'An error occurred plotting this route:' %} {{ route.error }}.
{% else %}
{% render_map map %}
{% blocktrans with route.total_time|humanise_seconds as time and route.total_distance|humanise_distance as distance %}This route will take {{ time }} and cover {{ distance }}.{% endblocktrans %}
    {% for waypoint in route.waypoints %}
  1. {{ waypoint.instruction }}
    {{ waypoint.additional }}
  2. {% endfor %}
{% endif %} {% else %}
{% blocktrans with entity.primary_type.verbose_name as type_name %}We do not yet have a location for this {{ type_name }}.{% endblocktrans %}
{% endif %}
{% trans 'Please note that the route information provided should be followed at your own risk.' %}
{% endblock %}