{# Embeds a organization within the sidebar of a page. organization - The organization dict. {% snippet 'snippets/organization, organization=group_dict %} #} {% set organization = organization or group%} {% set url = h.url_for(organization.type + '.read', id=organization.name, ) %} {% set dataset_type = h.default_package_type() %} {% block info %}
{% block inner %} {% block image %} {% endblock %} {% block heading %}

{{ organization.title or organization.name }} {% if organization.state == 'deleted' %} [{{ _('Deleted') }}] {% endif %}

{% endblock %} {% block description %} {% if organization.description %}

{{ h.markdown_extract(organization.description, 180) }}

{% link_for _('read more'), named_route=organization.type ~ '.about', id=organization.name %}

{% else %}

{{ h.humanize_entity_type('organization', organization.type, 'no description') or _('There is no description for this organization') }}

{% endif %} {% endblock %} {% if show_nums %} {% block nums %} {% set num_followers = h.follow_count('group', organization.id) %}
{{ _('Followers') }}
{{ h.SI_number_span(num_followers) }}
{{ h.humanize_entity_type('package', dataset_type, 'facet label') or _('Datasets') }}
{{ h.SI_number_span(organization.package_count) }}
{{ _('Members') }}
{{ h.member_count(organization.id) }}
{% endblock %} {% block follow %} {% if current_user.is_authenticated %} {% if error_message %}
{{ error_message }}
{% elif am_following %} Unfollow {% else %} Follow {% endif %} {% endif %} {% endblock %} {% endif %} {% endblock %}
{% endblock %}