diff --git a/ckanext/kepa/templates/user/dashboard_organizations.html b/ckanext/kepa/templates/user/dashboard_organizations.html new file mode 100644 index 0000000..01d51b5 --- /dev/null +++ b/ckanext/kepa/templates/user/dashboard_organizations.html @@ -0,0 +1,27 @@ +{% extends "user/dashboard.html" %} +{# This file can be deleted after CKAN core bug fix for Add Organization link #} +{% set group_type = h.default_group_type('organization') %} + +{% block page_primary_action %} + {% if h.check_access('organization_create') %} + {% link_for _('Add Organization'), controller='organization', action='new', class_="btn btn-primary", icon="plus-square" %} + {% endif %} +{% endblock %} + +{% block primary_content_inner %} +

{{ h.humanize_entity_type('organization', group_type, 'my label') or _('My Organizations') }}

+ {% set organizations = h.organizations_available(permission='manage_group', + include_dataset_count=True) %} + {% if organizations %} +
+ {% snippet "organization/snippets/organization_list.html", organizations=organizations, show_capacity=True %} +
+ {% else %} +

+ {{ h.humanize_entity_type('organization', group_type, 'you not member') or _('You are not a member of any organizations.') }} + {% if h.check_access('organization_create') %} + {% link_for _('Create one now?'), named_route=group_type ~ '.new' %} + {% endif %} +

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