{% extends "maps/map_base.html" %} {% load i18n %} {% load dialogos_tags %} {% load agon_ratings_tags %} {% load url from future %} {% load base_tags %} {% load guardian_tags %} {% block title %}{{ resource.title }} — {{ 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 == 'OL3' %} {% include "maps/map_ol3.html" %} {% elif preview == 'leaflet' %} {% include "maps/map_leaflet.html" %} {% elif preview == 'react' %} {% include 'geonode-client/map_detail.html' %} {% else %} {% include "maps/map_include.html" %} {% endif %} {{ block.super }} {% endblock %} {% block body_class %}maps{% endblock %} {% block body_outer %} {% overall_rating resource "map" as map_rating %}
{% include "_actions.html" %}
{% include "base/resourcebase_info_panel.html" %} {% block social_links %} {% if DISPLAY_SOCIAL %} {% include "social_links.html" %} {% endif %} {% endblock %} {% if DISPLAY_COMMENTS %}
{% include "_comments.html" %}
{% endif %} {% if DISPLAY_RATINGS %}
{% if request.user.is_authenticated %}

{% trans "Rate this Map" %}

{% user_rating request.user resource "map" as user_map_rating %}
{% endif %}

{% trans 'Average Rating' %}

{% overall_rating resource "map" as map_rating %} {% num_ratings resource as num_votes %}
({{num_votes}})
{% endif %}
{% endblock %} {% block extra_script %} {{ block.super }} {% if DISPLAY_SOCIAL %} {% include 'facebook_sdk.html' %} {% endif %} {% if request.user.is_authenticated %} {% user_rating_js request.user resource "map" %} {% else %} {% overall_rating resource "map" as the_map_rating %} {% endif %} {% include 'rating.html' %} {% include "_permissions_form_js.html" %} {% endblock %}