{% extends "documents/document_base.html" %} {% load i18n %} {% load dialogos_tags %} {% load pinax_ratings_tags %} {% load bootstrap_tags %} {% 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 %}{% trans "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 %}

{% trans "Download the" %} {{ resource }} {% trans "document" %}

{% elif resource.doc_url %}

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

{% endif %} {% endif %}
{% 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 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}})
{% endif %} {% if EXIF_ENABLED and exif_data %} {% with "exif/_exif_document_detail.html" as exif_template %} {% include exif_template %} {% endwith %} {% endif %} {% if FAVORITE_ENABLED %}
{% include "favorite/_favorite.html" %}
{% 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 "document" %} {% else %} {% overall_rating resource "document" as the_doc_rating %} {% endif %} {% include 'rating.html' %} {% include 'request_download.html' %} {% include "_permissions_form_js.html" %} {% if FAVORITE_ENABLED %} {% include "favorite/_favorite_js.html" %} {% endif %} {% endblock extra_script %}