Metadata-Version: 2.1
Name: ckanext-dcor-theme
Version: 0.5.0
Summary: The DCOR CKAN theme
Home-page: https://github.com/DCOR-dev/ckanext-dcor_theme
Author: Paul Müller
Author-email: dev@craban.de
License: AGPLv3+
Keywords: CKAN,DCOR,RT-DC
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3
License-File: LICENSE

ckanext-dcor_theme
==================

|PyPI Version| |Build Status| |Coverage Status|

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.

  .. code::

     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


.. |PyPI Version| image:: https://img.shields.io/pypi/v/ckanext.dcor_theme.svg
   :target: https://pypi.python.org/pypi/ckanext.dcor_theme
.. |Build Status| image:: https://img.shields.io/github/workflow/status/DCOR-dev/ckanext-dcor_theme/Checks
   :target: https://github.com/DCOR-dev/ckanext-dcor_theme/actions?query=workflow%3AChecks
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/ckanext-dcor_theme
   :target: https://codecov.io/gh/DCOR-dev/ckanext-dcor_theme


