{% macro license_string(pkg_dict) %} {% if 'license_url' in pkg_dict %} {{ pkg_dict.license_title }} {% else %} {% if pkg_dict.license_id %} {{ pkg_dict.license_title }} {% else %} {{ _('No License Provided') }} {% endif %} {% endif %} {% endmacro %} {% block license %} {% if text_only %} {{ license_string(pkg_dict) }} {% else %} {% block license_wrapper %}
{% block license_title %}

{{ _('License') }}

{% endblock %} {% block license_content %}

{% block license_content_inner %} {{ license_string(pkg_dict) }} {% if pkg_dict.isopen %} {%- call ui.util.call(ui.tooltip, tooltip=_('This dataset satisfies the Open Definition.')) -%} {%- call ui.util.call(ui.link, href="http://opendefinition.org/okd/", aria={"label": _('Open Data (This dataset satisfies the Open Definition.)')}, attrs={"class": "open-data"}) -%} {% trans %}OpenData{% endtrans %} {%- endcall %} {%- endcall %} {% endif %} {% endblock %}

{% endblock %}
{% endblock %} {% endif %} {% endblock %}