{# Embeds a organization within the sidebar of a page. organization - The organization dict. truncate - A max length for the organization description. If not provided the description will be full length. has_context_title - Boolean for whether to display a module-heading for when this snippet appears within a non-organization template (e.g. dataset page sidebar) Example: {% snippet 'snippets/organization, organization=c.group_dict %} #} {% with truncate=truncate or 0, url=h.url_for(controller='organization', action='read', id=organization.name) %}
{% if has_context_title %}

{{ _('Organization') }}

{% endif %}

{{ organization.title or organization.name }}

{% if organization.description %}

{{ h.markdown_extract(organization.description, 180) }} {% link_for _('read more'), controller='organization', action='about', id=organization.name %}

{% else %}

{{ _('There is no description for this organization') }}

{% endif %} {% if show_nums %}
{{ _('Followers') }}
{{ h.SI_number_span(organization.num_followers) }}
{{ _('Members') }}
{{ h.SI_number_span(organization.members|length) }}
{{ _('Datasets') }}
{{ h.SI_number_span(organization.package_count) }}
{% endif %}
{% endwith %}