{% extends theme('layouts/1-column.html') %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/breadcrumb.html') import breadcrumb with context %} {% from theme('macros/paginator.html') import paginator 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 bundle = 'organization' %} {% block breadcrumb %}
  • {{ _('Organizations') }}
  • {{ org.name }}
  • {% endblock %} {% block main_content %}
    {% if org.deleted %}
    {{ _('This organization has been deleted. This will be permanent in the next 24 hours') }}
    {% endif %}
    {% if org.public_service %} {% include theme("svg/certified.svg") %} {% endif %}

    {{ org.name }}

    {{ org.description|markdown }}
    {# TODO: proper
    {% for dataset in datasets %} {% include theme('dataset/search-result.html') %} {% endfor %}
    {{ paginator(datasets) }} {% endif %} {% if reuses and reuses|length > 0 %}

    {{ _('Reuses') }}{{ reuses|length or 0 }}

    {{ paginator(reuses) }}
    {% endif %}

    {{ _('Members') }}{{ org.members|length or 0 }}

    {% for member in org.members %} {% set user = member.user %} {% set role = member.role %}
    {% include theme('user/card.html') %}
    {% endfor %}

    {{ _('Technical details') }}

    ID
    {{ org.id }}
    {{ _('Creation date') }}
    {{ org.created_at|dateformat(format='long') }}
    {{ _('Modification date') }}
    {{ org.last_modified|dateformat(format='long') }}

    {{ _('Actions') }}

    {% endblock %}