{% extends "user/dashboard.html" %}
{% set org_type = h.default_group_type('organization') %}
{% block content_action -%}
{{ super() }}
{{ ui.content_action(h.humanize_entity_type('organization', org_type, 'add link') or _('Add Organization'), href=h.url_for(org_type ~ '.new'), icon="plus-square") if h.check_access('organization_create') }}
{%- endblock %}
{% block page_heading %}
{{ ui.heading(h.humanize_entity_type('organization', org_type, 'my label') or _('My Organizations'), level=1, attrs={"class": "sr-only"}) }}
{% endblock %}
{% block primary_content_inner %}
{% set organizations = h.organizations_available(permission='manage_group',
include_dataset_count=True,
include_member_count=True) %}
{% if organizations %}
{% snippet "organization/snippets/organization_list.html", organizations=organizations, show_capacity=True %}
{% else %}
{%- call ui.util.call(ui.empty) -%}
{{ h.humanize_entity_type('organization', org_type, 'you not member') or _('You are not a member of any organizations.') }}
{{ ui.link(_('Create one now?'), href=h.url_for(org_type ~ '.new')) if h.check_access('organization_create') }}
{%- endcall %}
{% endif %}
{% endblock %}