Skip to content

Commit

Permalink
Small fixes (#18)
Browse files Browse the repository at this point in the history
* Update default limit

* Fix Queryables HTML view

* Update CSS

* Update docker-compose.yml
  • Loading branch information
webb-ben authored Jul 17, 2024
1 parent c356473 commit c7404f0
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 22 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# dont need this anymore, but useful for test deployment
# requires separate service providing postgres database
version: '3'

services:
pygeoapi:
build: .
Expand Down
6 changes: 3 additions & 3 deletions pygeoapi-skin-dashboard/static/css/sb.css
Original file line number Diff line number Diff line change
Expand Up @@ -6444,7 +6444,7 @@ button.bg-light:focus {
}

.bg-dark, .bg-dark a {
background-color: #1e1446 !important;
background-color: #1B335F !important;
color: #fff;
}

Expand Down Expand Up @@ -9864,8 +9864,8 @@ a:focus {
}

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

Expand Down
45 changes: 29 additions & 16 deletions pygeoapi-skin-dashboard/templates/collections/queryables.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,34 @@ <h1>Queryables of {{ data['title'] }}</h1>
<p>
For this collection these queryable parameters are available.
</p>
<table class="table table-striped">
<thead>
<tr>
<th>Queryable</th>
<th>Type</th>
</tr>
</thead>
<tbody>
{% for queryable in data['queryables'] %}
<tr>
<td>{{ queryable['queryable'] }} </td>
<td>{{ queryable['type'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="row">
<div class="col-lg-6">
<table class="table table-striped">
<thead>
<tr>
<th>Queryable</th>
<th>Type</th>
</tr>
</thead>
<tbody>
{% for qname, qinfo in data['properties'].items() %}
<tr>
{% if qname == 'geometry' %}
<th>geometry</th>
<td><a href="{{ qinfo['$ref'] }}">{{ qname }} </a></td>
{% else %}
<th>{{ qname }} </th>
<td><code>{{ qinfo['type'] }}</code></td>
{% if 'format' in qinfo %}
(<code>{{ qinfo['format'] }}</code>)
{% endif %}
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</section>
{% endblock %}

2 changes: 1 addition & 1 deletion pygeoapi.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ server:
language: en-US
cors: true
pretty_print: true
limit: 100
limit: 500
map:
url: https://tile.openstreetmap.org/{z}/{x}/{y}.png
attribution: '<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>'
Expand Down

0 comments on commit c7404f0

Please sign in to comment.