summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/templates/chimere/blocks/map_menu.html2
-rw-r--r--chimere/templatetags/chimere_tags.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/chimere/templates/chimere/blocks/map_menu.html b/chimere/templates/chimere/blocks/map_menu.html
index 38fb4a8..02f415a 100644
--- a/chimere/templates/chimere/blocks/map_menu.html
+++ b/chimere/templates/chimere/blocks/map_menu.html
@@ -1,7 +1,7 @@
{% load i18n %}
<div id='chimere_map_menu'>
<ul>
- {% if routing %}
+ {% if routing and not simple %}
<li id='map_menu_from' class='routing_item'>{% trans "From" context "routing" %}</li>
<li id='map_menu_step' class='routing_item'>{% trans "Add a step" context "routing" %}</li>
<li id='map_menu_to' class='routing_item'>{% trans "To" context "routing" %}</li>
diff --git a/chimere/templatetags/chimere_tags.py b/chimere/templatetags/chimere_tags.py
index 15b8afa..2b78839 100644
--- a/chimere/templatetags/chimere_tags.py
+++ b/chimere/templatetags/chimere_tags.py
@@ -171,7 +171,8 @@ def head_form():
@register.inclusion_tag('chimere/blocks/map_menu.html', takes_context=True)
def map_menu(context):
context_data = {'routing': settings.CHIMERE_ENABLE_ROUTING \
- if hasattr(settings, 'CHIMERE_ENABLE_ROUTING') else False}
+ if hasattr(settings, 'CHIMERE_ENABLE_ROUTING') else False,
+ 'simple':context.get('simple')}
return context_data
@register.inclusion_tag('chimere/blocks/routing.html', takes_context=True)