{{ 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
| Product |
Uploaded |
Version |
{% if collection.products | length > 0 %}
{% for product in collection.products %}
| {{ product.name }} |
{{ product.uploaded.strftime('%Y-%m-%d %H:%M:%S') }} |
{{ product.version }} |
{% endfor %}
{% else %}
| No products |
|
|
{% endif %}
{% 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 %}
| Child Collection |
Number of Products |
Owner |
{% for child in collection.child_collections %}
| {{ child.name }} |
{{ child.products | length }} |
{{ child.owner }} |
{% endfor %}
{% endif %}
{% if collection.parent_collections | length > 0 %}
| Parent Collection |
Number of Products |
Owner |
{% for parent in collection.parent_collections %}
| {{ parent.name }} |
{{ parent.products | length }} |
{{ parent.owner }} |
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}
{% block scripts %}
{% endblock %}