diff --git a/core/jinja2_handler.py b/core/jinja2_handler.py index 894b8cfcd..8b7db69a6 100644 --- a/core/jinja2_handler.py +++ b/core/jinja2_handler.py @@ -12,18 +12,6 @@ from qfdmo.models.action import get_actions_by_direction -def is_embedded(request: HttpRequest) -> bool: - return "iframe" in request.GET or "carte" in request.GET - - -def is_carte(request: HttpRequest) -> bool: - return "carte" in request.GET - - -def is_iframe(request: HttpRequest) -> bool: - return "iframe" in request.GET - - def action_by_direction(request: HttpRequest, direction: str): requested_direction = get_direction(request) action_displayed = request.GET.get("action_displayed", "") @@ -89,9 +77,6 @@ def environment(**options): "hide_object_filter": hide_object_filter, "distance_to_acteur": distance_to_acteur, "display_exclusivite_reparation": display_exclusivite_reparation, - "is_embedded": is_embedded, - "is_iframe": is_iframe, - "is_carte": is_carte, "url": reverse, "static": static, "quote_plus": lambda u: quote_plus(u), diff --git a/jinja2/layout/base.html b/jinja2/layout/base.html index bb1e2b5a2..768ae6f8b 100644 --- a/jinja2/layout/base.html +++ b/jinja2/layout/base.html @@ -26,7 +26,7 @@ {% block javascript_extras %}{% endblock %} - {% if is_embedded(request) %} + {% if is_embedded %} {% endif %} @@ -35,7 +35,7 @@ class="qfdmo-flex qfdmo-flex-col" data-controller="analytics" > - {% if not is_embedded(request) %} + {% if not is_embedded %} {% block header %} {% include "layout/header.html" %} {% endblock %} @@ -58,14 +58,14 @@
+
{% if service_proposition.action.icon %} - + {% endif %} {{ service_proposition.action.libelle }}
diff --git a/jinja2/qfdmo/carte/panels/legend_mobile.html b/jinja2/qfdmo/carte/panels/legend_mobile.html index ef196f7eb..197ac6aa5 100644 --- a/jinja2/qfdmo/carte/panels/legend_mobile.html +++ b/jinja2/qfdmo/carte/panels/legend_mobile.html @@ -32,7 +32,7 @@