{% 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 %} {{ block.super }} {% endblock %} {% block body_class %}documents{% endblock %} {% block body_outer %}
{% get_obj_perms request.user for resource.get_self_resource as "perms" %} {% if "download_resourcebase" in perms %} {% 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}})
{% 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 %}