{% extends "documents/document_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 }} — {{ block.super }}{% endblock %} {% block head %} {% if TWITTER_CARD %} {% include "base/_resourcebase_twittercard.html" %} {% endif %} {% if OPENGRAPH_ENABLED %} {% include "base/_resourcebase_opengraph.html" %} {% endif %} {{ block.super }} {% endblock %} {% block body_class %}documents{% endblock %} {% block body_outer %}
{% if "download_resourcebase" in perms_list %} {% if resource.extension|lower in imgtypes and resource.doc_file %} {% elif resource.doc_file %}

Download the {{ resource }} document

{% elif resource.doc_url %}

Download the {{ resource }} document. ({% trans 'External Resource' %})

{% endif %} {% endif %}
{% include "_actions.html" %}
{% include "base/resourcebase_info_panel.html" %} {% block social_links %} {% include "social_links.html" %} {% endblock %}
{% include "_comments.html" %}
{% if request.user.is_authenticated %}

{% trans "Rate this document" %}

{% user_rating request.user resource "document" as user_document_rating %}
{% endif %}

{% trans 'Average Rating' %}

{% overall_rating resource "document" as document_rating %} {% num_ratings resource as num_votes %}
({{num_votes}})
{% if EXIF_ENABLED and exif_data %} {% with "exif/_exif_document_detail.html" as exif_template %} {% include exif_template %} {% endwith %} {% endif %}
  • {% endblock %} {% block extra_script %} {% if SOCIAL_BUTTONS %}
    {% endif %} {% if request.user.is_authenticated %} {% user_rating_js request.user resource "document" %} {% else %} {% overall_rating resource "document" as the_doc_rating %} {% endif %} {% include 'rating.html' %} {% include 'request_download.html' %} {% include "_permissions_form_js.html" %} {% endblock extra_script %}