{% extends "base.html" %} {# TODO: more specific titles #} {% block title %} {% if entity_type == "container" and entity.name %} {{ entity.name }} {% elif entity_type == "creator" and entity.display_name %} {{ entity.display_name }} {% elif entity_type == "release" and entity.title %} {{ entity.title }} {% else %} {{ entity_type }}_{{ entity.ident or entity.revision }} {% endif %} {% endblock %} {% macro entity_tab(name, text, url_suffix, count=None) %} {{ text }}{% if count != None %} ({{ count }}){% endif %} {% endmacro %} {% block fullmain %}

{% if entity_type == "container" %} {{ entity.name }} {% if entity.extra.original_title %}
{{ entity.extra.original_title }} {% endif %} {% elif entity_type == "creator" %} {{ entity.display_name }} {% elif entity_type == "file" %} {% elif entity_type == "fileset" %} {% elif entity_type == "webcapture" %} {% if entity.original_url %} {{ entity.original_url }} {% endif %} {% elif entity_type == "release" %} {{ entity.title }} {% if entity.subtitle %}
{{ entity.subtitle }} {% endif %} {% if entity.original_title %}
{{ entity.original_title }} {% endif %} {% endif %} {% if entity.ident %} {{ entity_type }}_{{ entity.ident }} {% elif entity.revision %} {{ entity_type }}_rev_{{ entity.revision }} {% endif %} {% if editgroup %} [as of editgroup_{{ editgroup.editgroup_id }}] {% endif %}

{% if entity_type == "release" %}

{% if entity._authors and entity._authors != [] %} by {% for contrib in entity._authors[:12] %} {% if contrib.creator_id %} {{ contrib.raw_name }}{% if not loop.last %}, {% endif %} {% else %} {% if contrib.raw_name != None %}{{ contrib.raw_name }}{% else %}Unknown{% endif %}{% if not loop.last %}, {% endif %} {% endif %} {% endfor %} {% if entity._authors|count > 12 %} (+{{ entity._authors|length - 12 }} others) {% endif %}
{% endif %} {% endif %}

{% if entity.ident %} {% endif %}
{% block entity_main %}{% endblock %}
{% endblock %} {% block postscript %} {% endblock %}