{# Template displays a document corpus for less tham 100 documents #} {% load fullpath %} {# select a css style, if a page is displayed in a frame or in a new windows #} {% if narrow_doc == "n" %} {% else %} {% endif %}
{# if there is more than 100 documents, display a back link #} {% if back_url != "" %} << Back to document catalog
{% endif %}

Features

{% for name, value in features.iteritems %} {{name}} = {{ value }}

{% endfor %}
{% for document in documents %}

{{ document.name }}

{% if document.text|length > 400 %} {{ document.text|slice:":400"|add:"..."}} {% else %} {{ document.text}} {% endif %}

Contains {{ document.annotations|length }} {% if document.annotations|length > 1 %} annotations {% else %} annotation {% endif %} of {{document.additions.basic_types}} basic {% if document.additions.basic_types > 1%} types. {% else %} type. {% endif %} Described with {{document.features|length}} {% if document.features|length > 1 %} features. {% else %} feature. {% endif %}

{% endfor %}