+
diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/item.html b/runtimes/eoapi/stac/eoapi/stac/templates/item.html new file mode 100644 index 0000000..f61b009 --- /dev/null +++ b/runtimes/eoapi/stac/eoapi/stac/templates/item.html @@ -0,0 +1,101 @@ +{% include "header.html" %} +{% if params %} + {% set urlq = url + '?' + params + '&' %} + {% else %} + {% set urlq = url + '?' %} +{% endif %} + + + +

Collection Item: {{ response.id }}

+ +
+
+

Properties

+
    +
  • ID: {{ response.id }}
  • + {% for key, value in response.properties.items() %} +
  • {{ key }}: {{ value }}
  • + {% endfor %} +
+
+
+
Loading...
+
+
+ + + +{% include "footer.html" %} diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/items.html b/runtimes/eoapi/stac/eoapi/stac/templates/items.html new file mode 100644 index 0000000..d1d84f2 --- /dev/null +++ b/runtimes/eoapi/stac/eoapi/stac/templates/items.html @@ -0,0 +1,153 @@ +{% include "header.html" %} + +{% set show_prev_link = false %} +{% set show_next_link = false %} +{% if params %} + {% set urlq = url + '?' + params + '&' %} + {% else %} + {% set urlq = url + '?' %} +{% endif %} + + + + +

Collection Items: {{ response.title or response.id }}

+ +
Loading...
+ +

+ Number of matching items: {{ response.numberMatched }}
+ Number of returned items: {{ response.numberReturned }}
+ Page: of
+

+ +
+ {% for link in response.links %} + {% if link.rel == 'prev' %} + + {% endif %} + {% endfor %} +
+ +
+ {% for link in response.links %} + {% if link.rel == 'next' %} + + {% endif %} + {% endfor %} +
+
+{% if response.features is defined and response.features|length > 0 %} + + + +{% for key, value in response.features.0.properties.items() %} + +{% endfor %} + + +{% for feature in response.features %} + + + {% for key, value in feature.properties.items() %} + + {% endfor %} + +{% endfor %} + +
ID{{ key }}
{{ feature.id }}{{ value }}
+{% endif %} +
+ + + +{% include "footer.html" %} diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/landing.html b/runtimes/eoapi/stac/eoapi/stac/templates/landing.html new file mode 100644 index 0000000..9aa2886 --- /dev/null +++ b/runtimes/eoapi/stac/eoapi/stac/templates/landing.html @@ -0,0 +1,33 @@ +{% include "header.html" %} +{% if params %} + {% set urlq = url + '?' + params + '&' %} + {% else %} + {% set urlq = url + '?' %} +{% endif %} + + + +

{{ response.title }}

+

+ {{ response.description }} +

+ +

Links

+ + +{% include "footer.html" %} diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/queryables.html b/runtimes/eoapi/stac/eoapi/stac/templates/queryables.html new file mode 100644 index 0000000..66b8020 --- /dev/null +++ b/runtimes/eoapi/stac/eoapi/stac/templates/queryables.html @@ -0,0 +1,38 @@ +{% include "header.html" %} +{% if params %} + {% set urlq = url + '?' + params + '&' %} + {% else %} + {% set urlq = url + '?' %} +{% endif %} + + + +

Collection: {{ response.title or response.id }}

+ +
+
+

Queryables

+
    + {% for k,v in response.properties.items() %} +
  • {% if '$ref' in v %} + {{ k }} + {% else %} + {{ k }}: {{ v['type'] }} + {% endif %} + {% endfor %} +
+
+
+ +{% include "footer.html" %} diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/search.html b/runtimes/eoapi/stac/eoapi/stac/templates/search.html new file mode 100644 index 0000000..55b736a --- /dev/null +++ b/runtimes/eoapi/stac/eoapi/stac/templates/search.html @@ -0,0 +1,153 @@ +{% include "header.html" %} + +{% set show_prev_link = false %} +{% set show_next_link = false %} +{% if params %} + {% set urlq = url + '?' + params + '&' %} + {% else %} + {% set urlq = url + '?' %} +{% endif %} + + + + +

Search

+ +
Loading...
+ +

+ Number of matching items: {{ response.numberMatched }}
+ Number of returned items: {{ response.numberReturned }}
+ Page: of
+

+ +
+ {% for link in response.links %} + {% if link.rel == 'prev' %} + + {% endif %} + {% endfor %} +
+ +
+ {% for link in response.links %} + {% if link.rel == 'next' %} + + {% endif %} + {% endfor %} +
+
+{% if response.features is defined and response.features|length > 0 %} + + + +{% for key, value in response.features.0.properties.items() %} + +{% endfor %} + + +{% for feature in response.features %} + + + {% for key, value in feature.properties.items() %} + + {% endfor %} + +{% endfor %} + +
ID{{ key }}
{{ feature.id }}{{ value }}
+{% endif %} +
+ + + +{% include "footer.html" %}