diff --git a/README.md b/README.md index 4efdae8..38a86cc 100644 --- a/README.md +++ b/README.md @@ -2,38 +2,16 @@ # ckanext-branding -**TODO:** Put a description of your extension here: What does it do? What features does it have? Consider including some screenshots or embedding a video! +CKAN plugin to customize look and feel in a more flexible way. Original repo from GisDevio ## Requirements -**TODO:** For example, you might want to mention here which versions of CKAN this -extension works with. - -If your extension works across different versions you can add the following table: - -Compatibility with core CKAN versions: - -| CKAN version | Compatible? | -| --------------- | ------------- | -| 2.6 and earlier | not tested | -| 2.7 | not tested | -| 2.8 | not tested | -| 2.9 | not tested | - -Suggested values: - -* "yes" -* "not tested" - I can't think of a reason why it wouldn't work -* "not yet" - there is an intention to get it working -* "no" - +Works with ckan 2.9 and 2.10 ## Installation -**TODO:** Add any additional install steps to the list below. - For example installing any non-Python dependencies or adding any required - config settings. +To use in docker copy branding_entrypoint.sh in foldere docker-entripoint.d To install ckanext-branding: diff --git a/branding_entrypoint.sh b/branding_entrypoint.sh new file mode 100644 index 0000000..031106d --- /dev/null +++ b/branding_entrypoint.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -e + +#/ckan-entrypoint.sh + +conf="/srv/app/ckan.ini" + + +ckan config-tool $conf 'ckan.site_title=ISMAR catalogue' + +ckan config-tool $conf 'ckan.site_intro_text="Welcome CKAN ISMAR"' + +#ckan config-tool $conf 'ckan.site_intro_text='${CKAN_INTRO_TEXT} + +#ckan +#conf_set ckan.site_title "ISMAR catalogue" +#conf_set ckan.site_description "Catalogo dati ISMAR" +#conf_set ckan.site_url "$CKAN_SITE_URL" +#conf_set ckan.root_path "$CKAN_ROOT_PATH" +conf_set ckan.site_logo "$CKAN_LOGO" +#conf_set ckan.favicon "favicon.png" +#conf_set ckan.site_intro_text "Questo catalogo รจ il punto di accesso per tutti i dati di ISMAR" +#conf_set ckan.site_about " +# About +#$(conf_get ckan.site_intro_text) + +# Developers +#Source code available at [gitlab.com/gisdev.io/catalogue-tools4msp](https://gitlab.com/gisdev.io/catalogue-tools4msp). + +# Administrators +#Harvesting operations can be monitored at [/harvest](/harvest). +#" + +#conf_set ckan.default.package_type "msp-data" # CKAN > 2.9 + diff --git a/ckanext/branding/public/logo.png b/ckanext/branding/public/logo.png deleted file mode 100644 index 284631b..0000000 Binary files a/ckanext/branding/public/logo.png and /dev/null differ diff --git a/ckanext/branding/public/logow.png b/ckanext/branding/public/logow.png new file mode 100644 index 0000000..725667b Binary files /dev/null and b/ckanext/branding/public/logow.png differ diff --git a/ckanext/branding/templates/base.html b/ckanext/branding/templates/base.html index d9cc53f..7248461 100644 --- a/ckanext/branding/templates/base.html +++ b/ckanext/branding/templates/base.html @@ -3,5 +3,5 @@ {% block styles %} {{ super() }} - + {% endblock %} diff --git a/ckanext/branding/templates/header.html b/ckanext/branding/templates/header.html index 3af29d1..0aebfca 100644 --- a/ckanext/branding/templates/header.html +++ b/ckanext/branding/templates/header.html @@ -7,7 +7,7 @@ {% endif %} {% if g.site_title%}