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 ckan.favicon = /base/images/favicon.ico
and run the dcor-i18n-hack command above.
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
File details
Details for the file ckanext-dcor_theme-0.4.0.tar.gz
.
File metadata
- Download URL: ckanext-dcor_theme-0.4.0.tar.gz
- Upload date:
- Size: 7.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b853311714cf524974e666dbcd630298b56d4b8e0e46f5358056c3cee6409ebb |
|
MD5 | ce93255e047a2d3e10b03c28e3abc96e |
|
BLAKE2b-256 | d4e6a08b9d9cf7cbef583e898d84d001ae16761f566762454b96c23acf0fa568 |
File details
Details for the file ckanext_dcor_theme-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: ckanext_dcor_theme-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9633736307394715ae296996ff0aa55e337a70fe4efcdb78b9d9cfd84f830dca |
|
MD5 | 0ca96a4b9d63ec0acaeab2e2fd93f901 |
|
BLAKE2b-256 | 4ce209684aa22b3979493450993cd08907841e7f60e635e2f396e124340a18e6 |