The DCOR CKAN theme
Project description
The CKAN theme of DCOR. What this plugin does:
remove the language selection from footer.html
remove links from footer.html
set the title of the page to “DCOR”
insert a custom about text
hide action buttons (Fullscreen, Embed) in resource view via css
remove social media buttons
change colors / icons / logo
use i18n to change the terms “Organization” -> “Circle”, “Group” -> “Collection”, etc.
ckan -c /etc/ckan/default/ckan.ini dcor-i18n-hack
Installation
pip install ckanext-dcor_theme
Edit ckan.ini:
ckan.plugins = [...] dcor_theme
and run the dcor-i18n-hack command:
ckan -c /etc/ckan/default/ckan.ini dcor-i18n-hack
Then, edit ckan.ini again:
ckan.locale_default = en_US
Testing
If CKAN/DCOR is installed and setup for testing, this extension can be tested with pytest:
pytest ckanext
Testing can also be done via vagrant in a virtualmachine using the dcor-test <https://app.vagrantup.com/paulmueller/boxes/dcor-test/> image. Make sure that vagrant and virtualbox are installed and run the following commands in the root of this repository:
# Setup virtual machine using `Vagrantfile` vagrant up # Run the tests vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ckanext_dcor_theme-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b4405a8079073620260da711734a72548483d1c4662c1e9c4221d474633702 |
|
MD5 | 891116cbebbc63d19bb34199b448aab7 |
|
BLAKE2b-256 | d059a0bfb2a5e98e765a2716aefa47b582593e9027a5e949b7e412f6c63ff075 |