From ba2e14a09ff6ab7a6f69c9d551ba085238db0846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 3 Jul 2020 09:57:19 +0200 Subject: [PATCH] metz-metropole-2019: mark target blank links with a tooltip --- templates/variants/metz-metropole-2019/combo/link-cell.html | 6 +++--- templates/variants/metz-metropole-2019/combo/wcs/form.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/variants/metz-metropole-2019/combo/link-cell.html b/templates/variants/metz-metropole-2019/combo/link-cell.html index 8b548e18..25c16dbf 100644 --- a/templates/variants/metz-metropole-2019/combo/link-cell.html +++ b/templates/variants/metz-metropole-2019/combo/link-cell.html @@ -2,7 +2,7 @@ {% get_asset cell=cell type='picture' as asset %} {% if asset.asset.url %} + {% if "target-blank" in cell.extra_css_class %}title="{{ title }} (nouvelle fenêtre)" rel="noopener" target="_blank"{% endif %}>
{{ title }} {% if cell.link_page.description %}

{{ cell.link_page.description }}

{% endif %} @@ -10,7 +10,7 @@
{% elif cell.link_page and cell.link_page.picture %} + {% if "target-blank" in cell.extra_css_class %}title="{{ title }} (nouvelle fenêtre)" rel="noopener" target="_blank"{% endif %}>
{{ title }}

{{ cell.link_page.description }}

@@ -19,6 +19,6 @@ {% else %}
{% endif %} diff --git a/templates/variants/metz-metropole-2019/combo/wcs/form.html b/templates/variants/metz-metropole-2019/combo/wcs/form.html index 74008060..53dd5cf5 100644 --- a/templates/variants/metz-metropole-2019/combo/wcs/form.html +++ b/templates/variants/metz-metropole-2019/combo/wcs/form.html @@ -4,7 +4,7 @@ {% if "image" in cell.extra_css_class %} {% get_asset "wcs:form:logo:"|add:cell.formdef_reference as asset %} + {% if "target-blank" in cell.extra_css_class %}title="{{ title }} (nouvelle fenêtre)" rel="noopener" target="_blank"{% endif %}>
{{ title }}