diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/item.html b/runtimes/eoapi/stac/eoapi/stac/templates/item.html index f61b009..c7c907b 100644 --- a/runtimes/eoapi/stac/eoapi/stac/templates/item.html +++ b/runtimes/eoapi/stac/eoapi/stac/templates/item.html @@ -1,10 +1,12 @@ -{% include "header.html" %} +{% extends "base.html" %} + {% if params %} {% set urlq = url + '?' + params + '&' %} {% else %} {% set urlq = url + '?' %} {% endif %} +{% block content %} -

Collection Item: {{ response.id }}

+

+ Collection Item: + {{ response.id }} +

-
+

Properties

+
    +
  • +
    ID
    +
    +
    {{ response.id }}
    +
    +
  • + {% for key, value in response.properties | dictsort %} +
  • +
    {{ key }}
    +
    +
    {{ value | tojson(2) | trim('"') }}
    +
    +
  • + {% endfor %} +
+ +

Assets

+
    + {% for key, asset in response.assets.items() %} +
  • +

    + {{ key }} + {% if asset.title and not key == asset.title %} • {{ asset.title }}{% endif %} +

    + {% if asset.type %}

    {{ asset.type }}

    {% endif %} + {% if asset.description %}

    {{ asset.description }}

    {% endif %} + + {% if asset.roles and asset.roles|length > 0 %} +
      + {% for role in asset.roles %} +
    • {{ role }}
    • + {% endfor %} +
    + {% endif %} + +
    + Asset Properties + {% for asset_key, asset_opt in asset | dictsort if asset_key not in ["title", "type", "description", "href", "roles", "alternate"] %} +
    +
    {{ asset_key }}
    +
    +
    {{ asset_opt | tojson(2) }}
    +
    +
    + {% else %} + No additional properties for this asset. + {% endfor %} +
    +
  • + {% endfor %} +
+ +

Links

    -
  • ID: {{ response.id }}
  • - {% for key, value in response.properties.items() %} -
  • {{ key }}: {{ value }}
  • + {% for link in response.links %} +
  • {{ link.title or link.rel }}
  • {% endfor %}
-
-
Loading...
+
+
Loading...
@@ -97,5 +162,4 @@

Properties

} - -{% include "footer.html" %} +{% endblock %}