{% extends "layers/layer_base.html" %} {% load i18n %} {% load dialogos_tags %} {% load agon_ratings_tags %} {% load bootstrap_tags %} {% load url from future %} {% load base_tags %} {% load guardian_tags %} {% block title %}{{ resource.title|default:resource.typename }} — {{ block.super }}{% endblock %} {% block head %} {% if TWITTER_CARD %} {% include "base/_resourcebase_twittercard.html" %} {% endif %} {% if OPENGRAPH_ENABLED %} {% include "base/_resourcebase_opengraph.html" %} {% endif %} {% if preview == 'geoext' %} {% include "layers/layer_geoext_map.html" %} {% else %} {% include "layers/layer_leaflet_map.html" %} {% endif %} {{ block.super }} {% endblock %} {% block body_class %}layers{% endblock %} {% block body_outer %}
{% include "_actions.html" %}
{% include "base/resourcebase_info_panel.html" %}
{% if resource.attribute_set.all %} {% if wps_enabled %} {% endif %} {% for attribute in resource.attributes %} {% if wps_enabled %} {% if attribute.unique_values == "NA" %} {% else %} {% endif %} {% endif %} {% endfor %}
{% trans "Attribute Name" %} {% trans "Label" %} {% trans "Description" %}{% trans "Range" %} {% trans "Average" %} {% trans "Median" %} {% trans "Standard Deviation" %}
{{ attribute }} {{ attribute.attribute_label }} {{ attribute.description }}{{ attribute.unique_values }} {{ attribute.average|floatformat:"2" }} {{ attribute.median|floatformat:"2" }} {{ attribute.stddev|floatformat:"2" }}
{% endif %}
{% block social_links %} {% if SOCIAL_BUTTONS %} {% include "social_links.html" %} {% endif %} {% endblock %}
{% with resource as obj %} {% include "_comments.html" %} {% endwith %}
{% if GEOGIG_ENABLED and resource.link_set.geogig %} {% with "_geogig_layer_detail.html" as geogig_template %}
{% with resource as obj %} {% include geogig_template %} {% endwith %}
{% endwith %} {% endif %}
{% if request.user.is_authenticated %}

{% trans "Rate this layer" %}

{% user_rating request.user resource "layer" as user_layer_rating %}
{% endif %}

{% trans 'Average Rating' %}

{% overall_rating resource "layer" as layer_rating %} {% num_ratings resource as num_votes %}
({{num_votes}})
{% if GEOSERVER_BASE_URL %} {% get_obj_perms request.user for resource.layer as "layer_perms" %} {% endif %} {% if "change_resourcebase_metadata" in perms_list or "change_resourcebase" in perms_list or "delete_resourcebase" in perms_list or "change_layer_style" in layer_perms %}
  • {% endif %}
  • {% if resource.get_legend %}
  • {%trans "Legend" %}

    {{ style.sld_title }}

    {% if resource.get_legend.link_type == 'image' %}

    {% else %}
    {% endif %}
  • {% endif %}
  • {% trans "Maps using this layer" %}

    {% if resource.maps %}

    {% trans "List of maps using this layer:" %}

    {% endif %}
      {% for maplayer in resource.maps %}
    • {{ maplayer.map.title }}
    • {% empty %}
    • {% trans "This layer is not currently used in any maps." %}
    • {% endfor %}
  • {% trans "Create a map using this layer" %}

    {% trans "Click the button below to generate a new map based on this layer." %}

    {% trans "Create a Map" %}
  • {% if documents.count > 0 %}
  • {% trans "Documents related to this layer" %}

    {% trans "List of documents related to this layer:" %}

  • {% endif %} {% if user.is_authenticated %}
  • {% trans "Styles" %}

    {% trans "The following styles are associated with this layer. Choose a style to view it in the preview map." %}

      {% for style in resource.styles.all %}
    • {% if resource.default_style == style %} (default style) {% else %} {% endif %} {{ style.sld_title }}
    • {% empty %}
    • {% trans "No styles associated with this layer" %}
    • {% endfor %}
  • {% endif %} {% if GEONODE_SECURITY_ENABLED %} {% if "change_resourcebase_permissions" in perms_list %}
  • {% trans "Permissions" %}

    {% trans "Click the button below to change the permissions of this layer." %}

    {% trans "Change Layer Permissions" %}

  • {% endif %} {% endif %} {% if resource.storeType == "remoteStore" %}
  • {% trans "External service layer" %}

    {% trans "Source" %}: {{ resource.service.title }}
    {% trans "Type" %}: {{ resource.service.type }}
  • {% endif %} {% include "base/_resourcebase_contact_snippet.html" %} {% if GEONODE_SECURITY_ENABLED %} {% include "_permissions_form.html" %} {% endif %}
    {% endblock %} {% block extra_script %} {% if GEOGIG_ENABLED and resource.link_set.geogig %} {% with "_geogig_scripts.html" as geogig_scripts_template %} {% include geogig_scripts_template %} {% endwith %} {% endif %} {% if request.user.is_authenticated %} {% user_rating_js request.user resource "layer" %} {% else %} {% overall_rating resource 'layer' as the_layer_rating %} {% endif %} {% include 'rating.html' %} {% include 'request_download.html' %} {% if GEONODE_SECURITY_ENABLED %} {% include "_permissions_form_js.html" %} {% endif %} {% endblock extra_script %}