Skip to content

Commit

Permalink
Add miteco css asset
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez authored Jun 6, 2024
1 parent c208dfa commit b58035b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ ckan.site_intro_text="[#en#] [![MITECO](https://sede.mapa.gob.es/portal/marm/ima
[![ckan-docker-spatial](https://img.shields.io/badge/ckan--docker--spatial-CKAN%202.9.11-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker) \
The open data portal of the [**Ministry for the Ecological Transition and the Demographic Challenge**](https://www.miteco.gob.es/) consists of an application using CKAN technology for the distribution of maps, data and spatial metadata and a \
[**CSW Catalog**]({{ {{ pycsw_url }} }}) (OGC standard) for the metadata publication and discovery about spatial resources on the web. \
[#es#] [![MITECO](https://sede.mapa.gob.es/portal/marm/images/common/logo_miteco.jpgcenter#center)](https://miteco.gob.es/) \
[#es#] [![MITECO](https://sede.mapa.gob.es/portal/marm/images/common/logo_miteco.jpg#center)](https://miteco.gob.es/) \
[![ckan-docker-espacial](https://img.shields.io/badge/ckan--docker--spatial-CKAN%202.9.11-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker) \
El portal de datos abiertos del [**Ministerio para la Transición Ecológica y el Reto Demográfico**](https://www.miteco.gob.es/) es una aplicación que utiliza la tecnología CKAN para la distribución de mapas, datos y metadatos espaciales y un \
[**Catálogo CSW**]({{ {{ pycsw_url }} }}) (estándar OGC) para la publicación y descubrimiento de metadatos sobre recursos espaciales en la web."
ckan.site_about="[#en#] [![MITECO](https://sede.mapa.gob.es/portal/marm/images/common/logo_miteco.jpg#center)](https://miteco.gob.es/) \
[![ckan-docker-spatial](https://img.shields.io/badge/ckan--docker--spatial-CKAN%202.9.11-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker) \
The open data portal of the [**Ministry for the Ecological Transition and the Demographic Challenge**](https://www.miteco.gob.es/) consists of an application using CKAN technology for the distribution of maps, data and spatial metadata and a \
[**CSW Catalog**]({{ {{ pycsw_url }} }}) (OGC standard) for the metadata publication and discovery about spatial resources on the web. \
[#es#] [![MITECO](https://sede.mapa.gob.es/portal/marm/images/common/logo_miteco.jpgcenter#center)](https://miteco.gob.es/) \
[#es#] [![MITECO](https://sede.mapa.gob.es/portal/marm/images/common/logo_miteco.jpg#center)](https://miteco.gob.es/) \
[![ckan-docker-espacial](https://img.shields.io/badge/ckan--docker--spatial-CKAN%202.9.11-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker) \
El portal de datos abiertos del [**Ministerio para la Transición Ecológica y el Reto Demográfico**](https://www.miteco.gob.es/) es una aplicación que utiliza la tecnología CKAN para la distribución de mapas, datos y metadatos espaciales y un \
[**Catálogo CSW**]({{ {{ pycsw_url }} }}) (estándar OGC) para la publicación y descubrimiento de metadatos sobre recursos espaciales en la web."
Expand Down
2 changes: 2 additions & 0 deletions ckanext/miteco/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ def update_config(self, config_):
toolkit.add_public_directory(config_, 'public')
toolkit.add_resource('fanstatic',
'miteco')

toolkit.add_resource("assets", "ckanext-miteco")
Empty file.
6 changes: 6 additions & 0 deletions ckanext/miteco/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% ckan_extends %}

{% block styles %}
{{ super() }}
{% include 'schemingdcat/snippets/schemingdcat_asset.html' %}
{% endblock %}
1 change: 1 addition & 0 deletions ckanext/miteco/templates/miteco/snippets/miteco_asset.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% asset 'ckanext-miteco/miteco-css' %}

0 comments on commit b58035b

Please sign in to comment.