From 38a00c3989f8f7d25b2262fe832ea0f6893404a6 Mon Sep 17 00:00:00 2001 From: NAGGINDA MARTHA Date: Tue, 25 May 2021 09:13:20 -0400 Subject: [PATCH] - Add client_version (#196) --- .../geonode-mapstore-client/app/geostory.html | 3 ++- .../geonode-mapstore-client/layer_embed.html | 3 ++- .../geonode-mapstore-client/map_edit.html | 5 ++-- .../geonode-mapstore-client/map_embed.html | 3 ++- .../templatetags/__init__.py | 0 .../templatetags/client_version.py | 23 +++++++++++++++++++ 6 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 geonode_mapstore_client/templatetags/__init__.py create mode 100644 geonode_mapstore_client/templatetags/client_version.py diff --git a/geonode_mapstore_client/templates/geonode-mapstore-client/app/geostory.html b/geonode_mapstore_client/templates/geonode-mapstore-client/app/geostory.html index 5454e3dc4a..cd0baa4b28 100644 --- a/geonode_mapstore_client/templates/geonode-mapstore-client/app/geostory.html +++ b/geonode_mapstore_client/templates/geonode-mapstore-client/app/geostory.html @@ -1,4 +1,5 @@ {% load static %} +{% load client_version %} {% include '../_geonode_config.html' with is_embed=is_embed is_app=True plugins_config_key=plugins_config_key|default:'geostory' is_new_resource=is_new|default:'true' %} - + diff --git a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_embed.html b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_embed.html index 98584fac1c..3498c1de2f 100644 --- a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_embed.html +++ b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_embed.html @@ -1,5 +1,6 @@ {% load static from staticfiles %} {% load client_lib_tags %} +{% load client_version %} @@ -96,6 +97,6 @@ - + diff --git a/geonode_mapstore_client/templates/geonode-mapstore-client/map_edit.html b/geonode_mapstore_client/templates/geonode-mapstore-client/map_edit.html index 7877fad0c0..815e21a19e 100644 --- a/geonode_mapstore_client/templates/geonode-mapstore-client/map_edit.html +++ b/geonode_mapstore_client/templates/geonode-mapstore-client/map_edit.html @@ -1,4 +1,5 @@ - +{% load static %} +{% load client_version %}