Skip to content

Commit 8717dac

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

File tree

5 files changed

+47
-32
lines changed

5 files changed

+47
-32
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: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6444,10 +6444,14 @@ button.bg-light:focus {
64446444
}
64456445

64466446
.bg-dark, .bg-dark a {
6447-
background-color: #1e1446 !important;
64486447
color: #fff;
64496448
}
64506449

6450+
.bg-dark {
6451+
background-color: #1B335F !important;
6452+
background-image: linear-gradient(90deg, #00A087 10%, #1B335F 35%);
6453+
}
6454+
64516455
a.bg-dark:hover, a.bg-dark:focus,
64526456
button.bg-dark:hover,
64536457
button.bg-dark:focus {
@@ -9864,8 +9868,8 @@ a:focus {
98649868
}
98659869

98669870
.bg-gradient-primary {
9867-
background-color: #4e73df;
9868-
background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
9871+
background-color: #00A087;
9872+
background-image: linear-gradient(180deg, #1B335F 33%, #00A087 66%);
98699873
background-size: cover;
98709874
}
98719875

pygeoapi-skin-dashboard/templates/_base.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ <h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
153153
<div class="container my-auto">
154154
<div class="my-auto">
155155
<div class="row">
156+
<div class="col-md-3">
157+
{% if config['metadata']['contact']['hours'] %}
158+
<b>Hours</b><br/>
159+
{{ config['metadata']['contact']['hours'] }}<br/>
160+
{% endif %}
161+
{% if config['metadata']['contact']['instructions'] %}
162+
<b>Contact instructions</b><br/>
163+
{{ config['metadata']['contact']['instructions'] }}
164+
{% endif %}
165+
</div>
156166
<div class="col-md-3">
157167
<b>Service provided by:</b><br/>
158168
<a itemprop="url" href="{{ config['metadata']['provider']['url'] }}">{{ config['metadata']['provider']['name'] }}</a><br/>
@@ -180,16 +190,6 @@ <h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
180190
<a href="{{ config['metadata']['contact']['url'] }}">{{ config['metadata']['contact']['url'] }}</a><br/>
181191
{% endif %}
182192
</div>
183-
<div class="col-md-3">
184-
{% if config['metadata']['contact']['hours'] %}
185-
<b>Hours</b><br/>
186-
{{ config['metadata']['contact']['hours'] }}<br/>
187-
{% endif %}
188-
{% if config['metadata']['contact']['instructions'] %}
189-
<b>Contact instructions</b><br/>
190-
{{ config['metadata']['contact']['instructions'] }}
191-
{% endif %}
192-
</div>
193193
<div class="col-md-3">
194194
{% if config['metadata']['identification']['terms_of_service'] %}
195195
<p>

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)