{% extends theme('layouts/1-column.html') %} {% from theme('macros/dataset_information.html') import information_col, information_section, information_title_with_button %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/breadcrumb.html') import breadcrumb with context %} {% from theme('macros/organization_name_with_certificate.html') import organization_name_with_certificate %} {% from theme('macros/paginator.html') import paginator with context %} {% from theme('macros/sort_search.html') import sort_search %} {% from theme('macros/certified.html') import badge_if_certified with context %} {% set is_hidden = (reuses.total or 0) + (datasets.total or 0) <= 0 %} {% set meta = { 'title': org.name, 'description': org.description|mdstrip(60)|forceescape, 'image': org.logo(external=True), 'keywords': [_('organization')], 'robots': 'noindex, nofollow' if is_hidden else '', } %} {% set read_only_mode = config.READ_ONLY_MODE %} {% set bundle = 'organization' %} {% set sorts = [ {"label": _('Newest'),"value": "created", "order": "desc"}, {"label": _('Oldest'),"value": "created", "order": "asc"}, {"label": _('Followers'),"value": "followers", "order": "desc"}, {"label": _('Reuses'), "value": "reuses", "order": "desc"} ] %} {% set section_class = 'bg-alt-blue-cumulus' %} {% block breadcrumb %} {% cache cache_duration, 'org-breadcrumb', org.id|string, g.lang_code, org.last_modified|string %}
  • {{ _('Organizations') }}
  • {{ org.name }}
  • {% endcache %} {% endblock %} {% block toolbar %} {{ follow_btn(org) }} {% if can_edit %} {{ _('Modify organization') }} {% endif %} {% endblock %} {% block main_content %} {% cache cache_duration, 'org-content', org.id|string, datasets.page|string, reuses.page|string, g.lang_code, current_user.slug or 'anonymous', org.last_modified|string, request.query_string|string %}
    {% if org.deleted %}

    {{ _('Deleted') }}

    {% endif %}

    {{ organization_name_with_certificate(org, "lg") }}

    {{ _("Description") }}

    {{ org.description|markdown }}
    {% if organization_datasets %} {% else %}
    {% include theme('svg/blank_state/resource.svg') %}

    {{ _("This organization hasn't published any datasets yet.") }}

    {{ _("What's a dataset ?") }}

    {% endif %}
    {% if reuses %}
      {% for reuse in reuses %}
    • {% include theme('reuse/card.html') %}
    • {% endfor %}
    {{ paginator(reuses, arg_name='reuses_page', url='#/reuses') }} {% else %}
    {% include theme('svg/blank_state/reuse.svg') %}

    {{ _("This organization hasn't published any reuses yet.") }}

    {{ _("What's a reuse ?") }}

    {% endif %}
    {{ hook('organization.display.metrics') }} {% call(slot) information_title_with_button(_('Members')) %} {% if slot == "button" %} {% set member = org.member(current_user) %} {% if not member %} {% set pending_request = org.pending_request(current_user) %} {% if not pending_request and not read_only_mode %}
    {% elif pending_request %}
    {{ _('Pending request to join this organization') }}
    {% endif %} {% endif %} {% else %} {% call() information_section() %}
    {% for member in org.members %} {% set user = member.user %} {% set role = member.role %}
    {% include theme('user/card.html') %}
    {% endfor %}
    {% endcall %} {% endif %} {% endcall %} {% call() information_section(_('Technical details')) %}
    {% call() information_col(_('Latest update')) %} {{ org.last_modified|dateformat(format='long') }} {% endcall %} {% call() information_col(_('ID')) %} {{org.id}} {% endcall %}
    {% call() information_col(_('Creation date')) %} {{org.created_at|dateformat(format='long')}} {% endcall %}
    {% endcall %}
    {% endcache %} {% endblock %}