diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-05-30 19:09:51 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-05-30 19:09:51 +0200 |
commit | 7252ff1780351457fb785cdc78d89005b8c2cc12 (patch) | |
tree | e28543cea13c0f99b3fa5350ab2bd27b5184ddc8 | |
parent | 7f62e7d756265c88556d0afd8aa9ae6c941dfe5f (diff) | |
download | Chimère-7252ff1780351457fb785cdc78d89005b8c2cc12.tar.bz2 Chimère-7252ff1780351457fb785cdc78d89005b8c2cc12.zip |
Remove routing for simple maps
-rw-r--r-- | chimere/templates/chimere/blocks/map_menu.html | 2 | ||||
-rw-r--r-- | chimere/templatetags/chimere_tags.py | 3 |
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) |