File tree 1 file changed +27
-1
lines changed
runtimes/eoapi/stac/eoapi/stac/templates 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ <h1 class="my-4">
55
55
</ div >
56
56
{% endif %}
57
57
58
- {% if response.item_assets.items()|length > 0 %}
58
+ {% if response.item_assets and response.item_assets .items()|length > 0 %}
59
59
< h2 > Item Assets</ h2 >
60
60
< ul class ="list-unstyled ">
61
61
{% for key, asset in response.item_assets.items() %}
@@ -75,6 +75,32 @@ <h2>Item Assets</h2>
75
75
</ ul >
76
76
{% endif %}
77
77
78
+ {% if response.renders and response.renders.items()|length > 0 %}
79
+ < h2 > Render Options</ h2 >
80
+ < ul class ="list-unstyled ">
81
+ {% for key, option in response.renders.items() %}
82
+ < li class ="mb-2 ">
83
+ < p class ="small text-monospace text-muted mb-0 "> {{ key }}</ p >
84
+ {% if option.title %}< p class ="mb-0 "> < b > {{ option.title }}</ b > </ p > {% endif %}
85
+
86
+ < div class ="row ">
87
+ < div class ="col-3 "> assets</ div >
88
+ < div class ="col-9 "> {% for asset in option.assets %}{{ asset }}{% if not loop.last %}, {% endif%}{% endfor %}</ div >
89
+ </ div >
90
+
91
+ {% for render_key, render_opt in option.items() %}
92
+ {% if render_key != 'title' and render_key != 'assets' %}
93
+ < div class ="row ">
94
+ < div class ="col-3 "> {{ render_key }}</ div >
95
+ < div class ="col-9 "> {{ render_opt }}</ div >
96
+ </ div >
97
+ {% endif %}
98
+ {% endfor %}
99
+ </ li >
100
+ {% endfor %}
101
+ </ ul >
102
+ {% endif %}
103
+
78
104
< h2 > Links</ h2 >
79
105
< ul >
80
106
{% for link in response.links %}
You can’t perform that action at this time.
0 commit comments