diff --git a/CHANGELOG.md b/CHANGELOG.md index 222c4b45..1853544e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +- datacontract catalog: Search form + ## [0.10.3] - 2024-05-05 diff --git a/datacontract/catalog/catalog.py b/datacontract/catalog/catalog.py index 8c4ee0aa..aa55e29d 100644 --- a/datacontract/catalog/catalog.py +++ b/datacontract/catalog/catalog.py @@ -71,6 +71,7 @@ def create_index_html(contracts, path): datacontract_cli_version=datacontract_cli_version, contracts=contracts, contracts_size=len(contracts), + owners=sorted(set(dc.spec.info.owner for dc in contracts if dc.spec.info.owner)), ) f.write(html_string) print(f"Created {index_filepath}") diff --git a/datacontract/templates/index.html b/datacontract/templates/index.html index 9e5d5fc4..2d07435d 100644 --- a/datacontract/templates/index.html +++ b/datacontract/templates/index.html @@ -50,13 +50,44 @@

- {# TODO search and filter form #} + {% if contracts_size > 0 %} + +
+

Filters

+
+ +
+
+ {% endif %} +