diff --git a/geonode/static/geonode/js/utils/thumbnail.js b/geonode/static/geonode/js/utils/thumbnail.js deleted file mode 100644 index cfa2ac1f7de..00000000000 --- a/geonode/static/geonode/js/utils/thumbnail.js +++ /dev/null @@ -1,89 +0,0 @@ -/* -This is only used by metadata wizard. -The other pages will use the implementation provided by the specific client (MapStore) - */ -window.getThumbnailOptions = function(){ - // (west, east, south, north, CRS) - if (typeof(olMap) == 'undefined') { - return null; - } - var bbox = olMap.getExtent(); - var body = { - srid: 'EPSG:3857', - bbox: [bbox.left, bbox.right, bbox.bottom, bbox.top] - }; - return body; -} - -var createMapThumbnail = function(obj_id) { - if (typeof(thumbnailUpdateUrl) == 'undefined') { - console.error("Missing required variables"); - return true; - } - - var body = getThumbnailOptions() - if (body == undefined) { - console.error("Thumbnail body undefined"); - return false; - } - $.ajax({ - type: "POST", - contentType: "application/json", - url: thumbnailUpdateUrl, - data: JSON.stringify(body), - async: true, - cache: false, - beforeSend: function () { - // Handle the beforeSend event - try { - $("#_thumbnail_processing").modal("show"); - } catch (err) { - console.log(err); - } - }, - complete: function () { - // Handle the complete event - try { - $("#_thumbnail_processing").modal("hide"); - } catch (err) { - console.log(err); - } - }, - success: function (data, status, jqXHR) { - try { - var title = ""; - var body = data.message; - if (data.success || status === 'success') { - title = "OK"; - } else { - title = "Warning"; - } - $("#_thumbnail_feedbacks").find('.modal-title').text(title); - $("#_thumbnail_feedbacks").find('.modal-body').text(body); - $("#_thumbnail_feedbacks").modal("show"); - } catch (err) { - console.log(err); - } finally { - return true; - } - }, - error: function (jqXHR, textStatus) { - try { - if (textStatus === 'timeout') { - $("#_thumbnail_feedbacks").find('.modal-title').text('Timeout'); - $("#_thumbnail_feedbacks").find('.modal-body').text('Failed from timeout: Could not create Thumbnail'); - $("#_thumbnail_feedbacks").modal("show"); - } else { - $("#_thumbnail_feedbacks").find('.modal-title').text('Error: ' + textStatus); - $("#_thumbnail_feedbacks").find('.modal-body').text('Could not create Thumbnail'); - $("#_thumbnail_feedbacks").modal("show"); - } - } catch (err) { - console.log(err); - } finally { - return true; - } - }, - }); - return true; -}; diff --git a/geonode/templates/base.html b/geonode/templates/base.html index 9c9500c264b..caeab289de6 100644 --- a/geonode/templates/base.html +++ b/geonode/templates/base.html @@ -19,7 +19,6 @@ {% load i18n avatar_tags %} {% load static %} -{% load account socialaccount %} {% load base_tags %} {% load client_lib_tags %} @@ -31,8 +30,6 @@ - - {% block title %}{{ SITE_NAME }}{% endblock %} @@ -61,81 +58,11 @@ - + {% block extra_head %} {% endblock %} {% endblock %} - + - - {% get_current_language_bidi as LANGUAGE_BIDI %} {% if LANGUAGE_BIDI %} @@ -175,137 +88,9 @@
- - {% block header %} - - {% endblock header %} - - - + + + {% block header %}{% endblock header %}
{% block middle %} @@ -326,140 +111,9 @@

{% trans "You are using an outdated browser that is not supported by GeoNode

{% endblock middle %} - {% block extra_mainbody %} - {% endblock extra_mainbody %} - - {% block monitoring %} - {% endblock %} - - {% block footer %} - - - {% if custom_theme.copyright %} - - {% endif %} - - {% endblock footer %} - - - - {% if not user.is_authenticated %} - - {% endif %} - + {% block footer %}{% endblock footer %} {% if DEBUG_STATIC %} @@ -485,136 +139,6 @@ {% block extra_script %}{% endblock extra_script %} - - - - - - - - - - - diff --git a/geonode/templates/metadata_base.html b/geonode/templates/metadata_base.html index 1d0485e4009..f140490e957 100644 --- a/geonode/templates/metadata_base.html +++ b/geonode/templates/metadata_base.html @@ -217,12 +217,6 @@ {{ block.super }} {% include 'metadata_form_js.html' %} - -