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 committed Jul 17, 2024
1 parent c356473 commit 8717dac
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 32 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
10 changes: 7 additions & 3 deletions pygeoapi-skin-dashboard/static/css/sb.css
Original file line number Diff line number Diff line change
Expand Up @@ -6444,10 +6444,14 @@ button.bg-light:focus {
}

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

.bg-dark {
background-color: #1B335F !important;
background-image: linear-gradient(90deg, #00A087 10%, #1B335F 35%);
}

a.bg-dark:hover, a.bg-dark:focus,
button.bg-dark:hover,
button.bg-dark:focus {
Expand Down Expand Up @@ -9864,8 +9868,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 66%);
background-size: cover;
}

Expand Down
20 changes: 10 additions & 10 deletions pygeoapi-skin-dashboard/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ <h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
<div class="container my-auto">
<div class="my-auto">
<div class="row">
<div class="col-md-3">
{% if config['metadata']['contact']['hours'] %}
<b>Hours</b><br/>
{{ config['metadata']['contact']['hours'] }}<br/>
{% endif %}
{% if config['metadata']['contact']['instructions'] %}
<b>Contact instructions</b><br/>
{{ config['metadata']['contact']['instructions'] }}
{% endif %}
</div>
<div class="col-md-3">
<b>Service provided by:</b><br/>
<a itemprop="url" href="{{ config['metadata']['provider']['url'] }}">{{ config['metadata']['provider']['name'] }}</a><br/>
Expand Down Expand Up @@ -180,16 +190,6 @@ <h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
<a href="{{ config['metadata']['contact']['url'] }}">{{ config['metadata']['contact']['url'] }}</a><br/>
{% endif %}
</div>
<div class="col-md-3">
{% if config['metadata']['contact']['hours'] %}
<b>Hours</b><br/>
{{ config['metadata']['contact']['hours'] }}<br/>
{% endif %}
{% if config['metadata']['contact']['instructions'] %}
<b>Contact instructions</b><br/>
{{ config['metadata']['contact']['instructions'] }}
{% endif %}
</div>
<div class="col-md-3">
{% if config['metadata']['identification']['terms_of_service'] %}
<p>
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 8717dac

Please sign in to comment.