1
- {% include "header .html" %}
1
+ {% extends "base .html" %}
2
2
{% if params %}
3
3
{% set urlq = url + '?' + params + '&' %}
4
4
{% else %}
5
5
{% set urlq = url + '?' %}
6
6
{% endif %}
7
7
8
+ {% block content %}
8
9
< nav aria-label ="breadcrumb ">
9
10
< ol class ="breadcrumb bg-light ">
10
11
{% for crumb in crumbs %} {% if not loop.last %}
21
22
</ ol >
22
23
</ nav >
23
24
24
- < h1 > Collection: {{ response.title or response.id }}</ h1 >
25
+ < h1 class ="my-4 ">
26
+ < span class ="d-block text-uppercase text-muted h6 mb-0 "> Collection:</ span >
27
+ {{ response.title or response.id }}
28
+ </ h1 >
25
29
26
30
< div class ="row ">
27
- < div class ="col-sm ">
28
- < p > {{ response.description or response.title or response.id }}</ p >
29
- {% if "keywords" in response and length(response.keywords) > 0 %}
30
- < div id ="keywords ">
31
- < p >
31
+ < div class ="col-md-7 ">
32
+ {% if response.description %}
33
+ < p > {{ response.description }}</ p >
34
+ {% endif %}
35
+ {% if "keywords" in response and response.keywords|length > 0 %}
36
+ < div class ="d-flex align-items-center mb-4 ">
37
+ {% include "icons/tag.html" %}
38
+ < ul class ="mb-0 pl-2 ">
32
39
{% for keyword in response.keywords %}
33
- < span class ="badge badge-secondary "> {{ keyword }}</ span >
40
+ < li class ="badge badge-secondary "> {{ keyword }}</ li >
34
41
{% endfor %}
35
- </ p >
42
+ </ lul >
36
43
</ div >
37
44
{% endif %}
38
45
@@ -43,7 +50,19 @@ <h2>Links</h2>
43
50
{% endfor %}
44
51
</ ul >
45
52
</ div >
46
- < div class ="col-sm ">
53
+ < div class ="col-md-5 ">
54
+ {% if response.license %}
55
+ < div class ="d-flex align-items-center mb-2 ">
56
+ {% include "icons/license.html" %}
57
+ < p class ="mb-0 pl-2 "> {{ response.license }}</ p >
58
+ </ div >
59
+ {% endif %}
60
+ {% if response.extent and response.extent.temporal %}
61
+ < div class ="d-flex align-items-center mb-2 ">
62
+ {% include "icons/clock.html" %}
63
+ < p class ="mb-0 pl-2 "> {{ response.extent.temporal.interval.0.0 or "..." }} — {{ response.extent.temporal.interval.0.1 or "..." }}</ p >
64
+ </ div >
65
+ {% endif %}
47
66
{% if response.extent and response.extent.spatial %}
48
67
< div id ="map " class ="rounded " style ="width: 100%; height: 400px ">
49
68
Loading...
@@ -54,7 +73,7 @@ <h2>Links</h2>
54
73
55
74
{% if response.extent and response.extent.spatial %}
56
75
< script >
57
- $ ( function ( ) {
76
+ window . addEventListener ( "load" , function ( ) {
58
77
const collection = { { response| tojson } } ;
59
78
var map = L . map ( 'map' ) . setView ( [ 0 , 0 ] , 1 ) ;
60
79
map . addLayer ( new L . TileLayer (
@@ -91,5 +110,4 @@ <h2>Links</h2>
91
110
} ) ;
92
111
</ script >
93
112
{% endif %}
94
-
95
- {% include "footer.html" %}
113
+ {% endblock %}
0 commit comments