From 3f1bd22dc86753fc87c1cb00040caa836185fb11 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 9 May 2023 15:32:51 +0200 Subject: Settings js in an external (generated but cachable) file. Manually set l10n for town sheet. --- ishtar_common/templates/base.html | 47 +--------------------- .../templates/ishtar/blocks/sheet_map.html | 7 ++-- ishtar_common/templates/ishtar/sheet_town.html | 6 +-- 3 files changed, 7 insertions(+), 53 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 426ae7655..8937fe735 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -51,53 +51,8 @@ {{EXTRA_JS|safe}} - {% endcompress %} + diff --git a/ishtar_common/templates/ishtar/blocks/sheet_map.html b/ishtar_common/templates/ishtar/blocks/sheet_map.html index 74182a2e1..1ecdb204f 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_map.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_map.html @@ -1,5 +1,6 @@ -{% load i18n window_field %}{% if PROFILE.mapping and geo_item.main_geodata %} +{% load i18n l10n window_field %}{% if PROFILE.mapping and geo_item.main_geodata %} {% with geodata_list=geo_item.geodata_list %} +{% localize off %}
@@ -73,8 +74,6 @@ const display_map_{{geo_item.SLUG}}_{{geo_item.pk}} = function() { display_map_{{geo_item.SLUG}}_{{geo_item.pk}}(); refresh_map_{{geo_item.SLUG}}_{{geo_item.pk}}(true); - - - +{% endlocalize %} {% endwith %} {% endif %} diff --git a/ishtar_common/templates/ishtar/sheet_town.html b/ishtar_common/templates/ishtar/sheet_town.html index 4f154f40d..7b86b9bf1 100644 --- a/ishtar_common/templates/ishtar/sheet_town.html +++ b/ishtar_common/templates/ishtar/sheet_town.html @@ -91,7 +91,7 @@ {% endif %} {% endwith %}
- {% if PROFILE.mapping and geo_item.main_geodata %} + {% if PROFILE.mapping and item.main_geodata %}

{% trans "Geographic localisation" %}

{% with geo_item=item %} @@ -133,7 +133,7 @@
- +{% endlocalize %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %} -- cgit v1.2.3