{% ckan_extends %}

{% set mandant = False %}
{% if c.group_dict %}
  {% set mandant = c.group_dict %}
{% endif %}
{% if c.pkg_dict %}
  {% set mandant = c.pkg_dict.organization %}
{% endif %}

{% block styles %}
  {{ super() }}
  {% resource 'ckanext-krzn/styles/krzn.css' %}
{% endblock %}

{#
We add the name of the organization as a css class which allows custom styles for
different organizations/mandanten.
#}
{% block bodytag %}class="
{% if mandant %}
	mandant
{% endif %}
" data-site-root="{{ h.url('/', locale='default', qualified=true) }}" data-locale-root="{{ h.url('/', qualified=true) }}" data-api-root="{{ g.api_url }}"
{% if mandant %}
	id="{{ mandant.name }}"
{% endif %}
{% endblock %}

{% ckan_extends %}

{% set mandant = False %}
{% if c.group_dict %}
  {% set mandant = c.group_dict %}
{% endif %}
{% if c.pkg_dict %}
  {% set mandant = c.pkg_dict.organization %}
{% endif %}

{% block styles %}
  {{ super() }}
  {% resource 'ckanext-krzn/styles/krzn.css' %}
{% endblock %}

{#
We add the name of the organization as a css class which allows custom styles for
different organizations/mandanten.
#}
{% block bodytag %} class="
{% if mandant %}
	mandant
{% endif %}
" data-site-root="{{ h.url('/', locale='default', qualified=true) }}" data-locale-root="{{ h.url('/', qualified=true) }}" data-api-root="{{ g.api_url }}"
{% if mandant %}
	id="{{ mandant.name }}"
{% endif %}
{% endblock %}

Put space between body and class
Put space between body and class