From 4dd9f58963f1d21ded1c51a86c46ef4cc089dcfc Mon Sep 17 00:00:00 2001 From: Renaud Michaelis Date: Mon, 7 Oct 2024 17:55:21 +0200 Subject: [PATCH 1/2] new template for meteolux --- .../templates/tooltip/meteolux_europe.html | 5 +++++ .../templates/tooltip/meteolux_gr.html | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html create mode 100644 geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html diff --git a/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html new file mode 100644 index 000000000..7e90506b1 --- /dev/null +++ b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html @@ -0,0 +1,5 @@ +

{{layers.layerLabel | translate}}

+
+

{{feature.attributes.station}} ({{feature.attributes.icao}})

+  {{feature.attributes.temperature}}°C +
diff --git a/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html new file mode 100644 index 000000000..4faac101d --- /dev/null +++ b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html @@ -0,0 +1,6 @@ +

{{layers.layerLabel | translate}}

+
+

{{feature.attributes.station}} ({{feature.attributes.icao}})

+ {{feature.attributes.taf}}
+ {{feature.attributes.metar}} +
From 253a57374423ee6e4d51185b754cbe479c4730ba Mon Sep 17 00:00:00 2001 From: Renaud Michaelis Date: Mon, 7 Oct 2024 18:01:49 +0200 Subject: [PATCH 2/2] new api template for meteolux --- .../templates/tooltip/meteolux_europe.html | 11 ++++++----- .../templates/tooltip/meteolux_gr.html | 13 +++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html index 7e90506b1..3e12e74b2 100644 --- a/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html +++ b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_europe.html @@ -1,5 +1,6 @@ -

{{layers.layerLabel | translate}}

-
-

{{feature.attributes.station}} ({{feature.attributes.icao}})

-  {{feature.attributes.temperature}}°C -
+% if features: +## -*- coding: utf-8 -*- +% for feature in features: +

${feature['attributes']['station']} ({{${feature['attributes']['icao']}}})

+  ${feature['attributes']['temperature']}°C +% endif diff --git a/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html index 4faac101d..1e874806a 100644 --- a/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html +++ b/geoportal/geoportailv3_geoportal/templates/tooltip/meteolux_gr.html @@ -1,6 +1,7 @@ -

{{layers.layerLabel | translate}}

-
-

{{feature.attributes.station}} ({{feature.attributes.icao}})

- {{feature.attributes.taf}}
- {{feature.attributes.metar}} -
+% if features: +## -*- coding: utf-8 -*- +% for feature in features: +

${feature['attributes']['station']} ({{${feature['attributes']['icao']}}})

+ ${feature['attributes']['taf']}
+ ${feature['attributes']['metar']} +% endif