From 8717dac1efebdd769dbea6ac8df97f09ffe25d09 Mon Sep 17 00:00:00 2001 From: Benjamin Webb <40066515+webb-ben@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:44:42 -0400 Subject: [PATCH] Small fixes (#18) * Update default limit * Fix Queryables HTML view * Update CSS * Update docker-compose.yml --- docker-compose.yml | 2 - pygeoapi-skin-dashboard/static/css/sb.css | 10 +++-- pygeoapi-skin-dashboard/templates/_base.html | 20 ++++----- .../templates/collections/queryables.html | 45 ++++++++++++------- pygeoapi.config.yml | 2 +- 5 files changed, 47 insertions(+), 32 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index feebdf9..e510062 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,5 @@ # dont need this anymore, but useful for test deployment # requires separate service providing postgres database -version: '3' - services: pygeoapi: build: . diff --git a/pygeoapi-skin-dashboard/static/css/sb.css b/pygeoapi-skin-dashboard/static/css/sb.css index fb61b42..83b8969 100644 --- a/pygeoapi-skin-dashboard/static/css/sb.css +++ b/pygeoapi-skin-dashboard/static/css/sb.css @@ -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 { @@ -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; } diff --git a/pygeoapi-skin-dashboard/templates/_base.html b/pygeoapi-skin-dashboard/templates/_base.html index 101748a..e668c95 100644 --- a/pygeoapi-skin-dashboard/templates/_base.html +++ b/pygeoapi-skin-dashboard/templates/_base.html @@ -153,6 +153,16 @@
diff --git a/pygeoapi-skin-dashboard/templates/collections/queryables.html b/pygeoapi-skin-dashboard/templates/collections/queryables.html index bb2a971..30ed08d 100644 --- a/pygeoapi-skin-dashboard/templates/collections/queryables.html +++ b/pygeoapi-skin-dashboard/templates/collections/queryables.html @@ -11,21 +11,34 @@
For this collection these queryable parameters are available.
-Queryable | -Type | -
---|---|
{{ queryable['queryable'] }} | -{{ queryable['type'] }} | -
Queryable | +Type | +||
---|---|---|---|
geometry | +{{ qname }} | + {% else %} +{{ qname }} | +{{ qinfo['type'] }} |
+ {% if 'format' in qinfo %}
+ (