Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logo ISMAR and ckan_path removed #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 3 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
35 changes: 35 additions & 0 deletions branding_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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

Binary file removed ckanext/branding/public/logo.png
Binary file not shown.
Binary file added ckanext/branding/public/logow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ckanext/branding/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
{% block styles %}
{{ super() }}
<!-- {{ g.root_path }} -->
<link rel="stylesheet" href="/ckan/main.css" />
<link rel="stylesheet" href="/main.css" />
{% endblock %}
2 changes: 1 addition & 1 deletion ckanext/branding/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% endif %}
{% if g.site_title%}
<h1 class="font-display hover:no-underline text-4xl ml-5">
<a class="hover:no-underline visited:no-underline focus:no-underline" href="{{ h.url_for('home.index') }}">IT-IOOS Catalogue</a>
<a class="hover:no-underline visited:no-underline focus:no-underline" href="{{ h.url_for('home.index') }}">ISMAR Catalogue</a>
</h1>
{% endif %}
</div>
Expand Down
8 changes: 4 additions & 4 deletions ckanext/branding/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<div class="splide" role="group" aria-label="Splide Basic HTML Example">
<div class="splide__track">
<ul class="splide__list">
<img class="splide__slide object-cover object-center" src="/ckan/img1.jpg">
<img class="splide__slide object-cover object-center" src="/ckan/img2.jpg">
<img class="splide__slide object-cover object-center" src="/ckan/img3.jpg">
<img class="splide__slide object-cover object-center" src="/ckan/img4.jpg">
<img class="splide__slide object-cover object-center" src="/img1.jpg">
<img class="splide__slide object-cover object-center" src="/img2.jpg">
<img class="splide__slide object-cover object-center" src="/img3.jpg">
<img class="splide__slide object-cover object-center" src="/img4.jpg">
</ul>
</div>
</div>
Expand Down