Skip to content

Commit c7404f0

Browse files
authored
Small fixes (#18)
* Update default limit * Fix Queryables HTML view * Update CSS * Update docker-compose.yml
1 parent c356473 commit c7404f0

File tree

4 files changed

+33
-22
lines changed

4 files changed

+33
-22
lines changed

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# dont need this anymore, but useful for test deployment
22
# requires separate service providing postgres database
3-
version: '3'
4-
53
services:
64
pygeoapi:
75
build: .

pygeoapi-skin-dashboard/static/css/sb.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6444,7 +6444,7 @@ button.bg-light:focus {
64446444
}
64456445

64466446
.bg-dark, .bg-dark a {
6447-
background-color: #1e1446 !important;
6447+
background-color: #1B335F !important;
64486448
color: #fff;
64496449
}
64506450

@@ -9864,8 +9864,8 @@ a:focus {
98649864
}
98659865

98669866
.bg-gradient-primary {
9867-
background-color: #4e73df;
9868-
background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
9867+
background-color: #00A087;
9868+
background-image: linear-gradient(180deg, #1B335F 33%, #00A087 100%);
98699869
background-size: cover;
98709870
}
98719871

pygeoapi-skin-dashboard/templates/collections/queryables.html

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,34 @@ <h1>Queryables of {{ data['title'] }}</h1>
1111
<p>
1212
For this collection these queryable parameters are available.
1313
</p>
14-
<table class="table table-striped">
15-
<thead>
16-
<tr>
17-
<th>Queryable</th>
18-
<th>Type</th>
19-
</tr>
20-
</thead>
21-
<tbody>
22-
{% for queryable in data['queryables'] %}
23-
<tr>
24-
<td>{{ queryable['queryable'] }} </td>
25-
<td>{{ queryable['type'] }}</td>
26-
</tr>
27-
{% endfor %}
28-
</tbody>
29-
</table>
14+
<div class="row">
15+
<div class="col-lg-6">
16+
<table class="table table-striped">
17+
<thead>
18+
<tr>
19+
<th>Queryable</th>
20+
<th>Type</th>
21+
</tr>
22+
</thead>
23+
<tbody>
24+
{% for qname, qinfo in data['properties'].items() %}
25+
<tr>
26+
{% if qname == 'geometry' %}
27+
<th>geometry</th>
28+
<td><a href="{{ qinfo['$ref'] }}">{{ qname }} </a></td>
29+
{% else %}
30+
<th>{{ qname }} </th>
31+
<td><code>{{ qinfo['type'] }}</code></td>
32+
{% if 'format' in qinfo %}
33+
(<code>{{ qinfo['format'] }}</code>)
34+
{% endif %}
35+
{% endif %}
36+
</tr>
37+
{% endfor %}
38+
</tbody>
39+
</table>
40+
</div>
41+
</div>
3042
</section>
3143
{% endblock %}
44+

pygeoapi.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ server:
4040
language: en-US
4141
cors: true
4242
pretty_print: true
43-
limit: 100
43+
limit: 500
4444
map:
4545
url: https://tile.openstreetmap.org/{z}/{x}/{y}.png
4646
attribution: '<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>'

0 commit comments

Comments
 (0)