{% extends "page_layout.html" %} {% load geonode_auth %} {% load i18n %} {% load dialogos_tags %} {% load agon_ratings_tags %} {% load avatar_tags %} {% block title %} {{ layer.title|default:layer.typename }} - {{ block.super }} {% endblock %} {% block head %} {% include "geonode/ext_header.html" %} {% include "geonode/app_header.html" %} {% include "geonode/geo_header.html" %} {{ block.super }} {% endblock %} {% block start_body_js %}
{% endblock %} {% block main %}

{{ layer.resource.title|default:layer.typename }}

{% overall_rating layer "layer" as layer_rating %}

{% trans "Abstract" %}: {{ layer.abstract|default:_("No abstract for this layer.") }}

{% if layer.display_type %}

{% trans "Type" %}: {{ layer.display_type }}

{% endif %} {% if layer.keywords %}

{% trans "Keywords" %}: {{ layer.keywords.all|join:", " }}

{% endif %} {% if layer.edition %}

{% trans "Edition" %}: {{ layer.edition }}

{% endif %} {% if layer.topic_category %}

{% trans "Category" %}: {{ layer.topic_category.title }}

{% endif %} {% if layer.constraints_use or layer.constraints_other %}

{% trans "Citation" %}: {{ layer.constraints_use}} {{ layer.contraints_other}}

{% endif %} {% if layer.owner %}

{% trans "Owner" %}: {{ layer.owner.username }}

{% endif %} {% if layer.poc %}

{% trans "Point of Contact" %}: {% if layer.poc.user %} {{ layer.poc.user.username }} {% else %}

{% endif %}

{% endif %} {% if layer.metadata_author %}

{% trans "Metadata Author" %}: {% if layer.metadata_author.user %} {{ layer.metadata_author.user.username }} {% else %}

{% endif %}

{% endif %} {% if layer.attribute_set %}

{% trans "Attributes" %}: {% for attribute in layer.attribute_set.all %} {{ attribute.attribute_label }}, {% endfor %}

{% endif %} {% if layer.supplemental_information %}

{% trans "Supplemental Information" %}: {{ layer.supplemental_information }}

{% endif %} {% if layer.data_quality_statement %}

{% trans "Data Quality Statement" %}: {{ layer.data_quality_statement }}

{% endif %} {% if layer.geographic_bounding_box %}

{% trans "Bounding Box" %}: {{ layer.geographic_bounding_box }}

{% endif %} {% if layer.srs %}

{% trans "Native SRS" %}: {{ layer.srs|default:_("No SRS specified.") }}

{% endif %}

{% trans "Comments" %}

{% comments layer as comments %} {% for comment in comments %}
{{ comment.comment|escape|urlize|safe }}

{{ comment.author.get_full_name|default:comment.author|capfirst }} commented {% blocktrans with comment.submit_date|timesince as age %} {{ age }} ago {% endblocktrans %}

{% endfor %} {% if request.user.is_authenticated %}

{% trans "Post a comment" %}

{% comment_form layer as comment_form %}
{% csrf_token %}
{{ comment_form.comment }}
{% else %}

{% trans "Login to add a comment" %}

{% endif %}
{% if request.user.is_authenticated %}

{% trans "Rate this layer" %}

{% user_rating request.user layer "layer" as user_layer_rating %}
{% endif %}
{% endblock %} {% block sidebar %} {% endblock %} {% block end_body_js %} {% if request.user.is_authenticated %} {% user_rating_js request.user layer "layer" %} {% else %} {% endif %} {% endblock %}