{% extends "core.html" %} {% block content %}

{{ collection.name }}

ID: {{ collection.id }} Owner: {{ collection.owner }} {% for reader in collection.readers %} Reader: {{ reader }} {% endfor %} {% for writer in collection.writers %} Writer: {{ writer }} {% endfor %}
{% markdown %}{{ collection.description }}{% endmarkdown %} {% if request.user.groups.intersection(collection.writers) or "hippo:admin" in request.auth.scopes %} Edit {% endif %}

Products

{% if collection.products | length > 0 %} {% for product in collection.products %} {% endfor %} {% else %} {% endif %}
Product Uploaded Version
{{ product.name }} {{ product.uploaded.strftime('%Y-%m-%d %H:%M:%S') }} {{ product.version }}
No products
{% if collection.parent_collections | length > 0 or collection.child_collections | length > 0 %}

Collections

{% set parents = collection.parent_collections %} {% set children = collection.child_collections %} {% set current_item_name = collection.name %} {% set current_item_id = collection.id %} {% set relationship_type = "collection" %} {% include "parent_child_diagram.html" %}
{% if collection.child_collections | length > 0 %} {% for child in collection.child_collections %} {% endfor %}
Child Collection Number of Products Owner
{{ child.name }} {{ child.products | length }} {{ child.owner }}
{% endif %} {% if collection.parent_collections | length > 0 %} {% for parent in collection.parent_collections %} {% endfor %}
Parent Collection Number of Products Owner
{{ parent.name }} {{ parent.products | length }} {{ parent.owner }}
{% endif %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}