{% extends "base.html.jinja" %} {% block content %}

{{ dest_name }}

Environment: {{ dest_environment }}

{# Type info #}
Type
{% if dest_type_name %}
Name

{{ dest_type_name }}

{% if dest_type_organisation %}
Organisation

{{ dest_type_organisation }}

{% endif %} {% if dest_type_version %}
Version

v{{ dest_type_version }}

{% endif %}
{% else %}

No type assigned

{% endif %}
{# Metadata section #}
Metadata {% if metadata | length > 0 %} {{ metadata | length }} key{% if metadata | length != 1 %}s{% endif %} {% endif %}
{% if is_admin %}
{% for entry in metadata %} {% endfor %} {# One empty row to start #}
{% else %} {# Read-only view for non-admins #} {% if metadata | length > 0 %}
{% for entry in metadata %}
{{ entry.key }} {{ entry.value }}
{% endfor %}
{% else %}
No metadata
{% endif %} {% endif %}
{% endblock %}