Skip to content

Commit 7e5b51c

Browse files
committed
Move license and date range to left col
1 parent d33d03c commit 7e5b51c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

runtimes/eoapi/stac/eoapi/stac/templates/collection.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ <h1 class="my-4">
3232
{% if response.description %}
3333
<p>{{ response.description }}</p>
3434
{% endif %}
35+
{% if response.license %}
36+
<div class="d-flex align-items-center mb-2">
37+
{% include "icons/license.html" %}
38+
<p class="mb-0 pl-2">{{ response.license }}</p>
39+
</div>
40+
{% endif %}
41+
{% if response.extent and response.extent.temporal %}
42+
<div class="d-flex align-items-center mb-4">
43+
{% include "icons/clock.html" %}
44+
<p class="mb-0 pl-2">{{ response.extent.temporal.interval.0.0 or "..." }} — {{ response.extent.temporal.interval.0.1 or "..." }}</p>
45+
</div>
46+
{% endif %}
3547
{% if "keywords" in response and response.keywords|length > 0 %}
3648
<div class="d-flex align-items-center mb-4">
3749
{% include "icons/tag.html" %}
@@ -71,18 +83,6 @@ <h2>Links</h2>
7183
</ul>
7284
</div>
7385
<div class="col-md-5">
74-
{% if response.license %}
75-
<div class="d-flex align-items-center mb-2">
76-
{% include "icons/license.html" %}
77-
<p class="mb-0 pl-2">{{ response.license }}</p>
78-
</div>
79-
{% endif %}
80-
{% if response.extent and response.extent.temporal %}
81-
<div class="d-flex align-items-center mb-2">
82-
{% include "icons/clock.html" %}
83-
<p class="mb-0 pl-2">{{ response.extent.temporal.interval.0.0 or "..." }} — {{ response.extent.temporal.interval.0.1 or "..." }}</p>
84-
</div>
85-
{% endif %}
8686
{% if response.extent and response.extent.spatial %}
8787
<div id="map" class="rounded" style="width: 100%; height: 400px">
8888
Loading...

0 commit comments

Comments
 (0)