{% extends theme('base.html') %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/integrate.html') import integrate_btn with context %} {% from theme('macros/issues.html') import issues_btn with context %} {% set meta = { 'title': dataset.full_title, 'description': dataset.description|mdstrip(60)|forceescape, 'image': dataset.organization and dataset.organization.logo(external=True) or '', 'keywords': [_('dataset')] + dataset.tags, 'robots': 'noindex, nofollow' if dataset.is_hidden else '', } %} {% set bundle = 'dataset' %} {% set body_class = 'dataset-display' %} {% block extra_head %} {% cache cache_duration, 'dataset-extra-head', dataset.id|string, g.lang_code %} {% endcache %} {% endblock %} {% block breadcrumb %} {% cache cache_duration, 'dataset-breadcrumb', dataset.id|string, g.lang_code %}
  • {{ _('Datasets') }}
  • {{ dataset.acronym or dataset.title|truncate(128) }}
  • {% endcache %} {% endblock %} {% block content %} {% cache cache_duration, 'dataset-content', dataset.id|string, g.lang_code, current_user.slug or 'anonymous' %}
    {% if dataset.archived %}
    {% endif %}
    {{ dataset.description|markdown }}

    {{ _('Resources') }}

    {% if dataset.community_resources|length %} {{ _('See also: community resources') }} {% endif %}
    {% set grouped_resources = dataset.resources|group_resources_by_type %} {% set nb_groups = grouped_resources.keys()|length %} {% set max_resources = config.DATASET_MAX_RESOURCES_UNCOLLAPSED %} {% for (type, type_label), resources in grouped_resources.items() %} {% if nb_groups > 1 %}

    {{ type_label }}

    {% endif %} {% for resource in resources %} {% if loop.index0 == max_resources %}
    {% endif %} {% include theme('dataset/resource/card.html') %} {% endfor %} {% if resources|length > max_resources %}

    {% endif %} {% else %}

    {{ _('No resources') }}

    {% endfor %} {% if can_edit %}

    {{ _('Add a resource') }}

    {% endif %}
    {# end resources #} {# button bar #}
    {% if can_edit %} {% endif %} {% if sysadmin %}
    {% endif %}
    {{ follow_btn(dataset) }}
    {{ integrate_btn(dataset) }}
    {{ issues_btn(dataset) }}
    {# end button bar #} {{ hook('dataset.display.after-description') }}
    {# end left column #} {# Right sidebar #}
    {% block community %}

    {{ _('Discussions') }}

    {{ _('Discussion between the organization and the community about this dataset.') }}

    {{ _('Community resources') }}

    {% for resource in dataset.community_resources %} {% include theme('dataset/resource/card.html') %} {% endfor %}

    {{ _('Add a community resource') }}

    {{ _('You have built a more comprehensive database than those presented here? This is the time to share it!') }}

    {% block reuses_section %}

    {{ _('Reuses') }}

    {% for reuse in reuses %} {% set features = ['preview'] %}
    {% include theme('reuse/card.html') %}
    {% endfor %}
    {% include theme('dataset/add-reuse-card.html') %}

    {% trans %}You reused these data and published an article, a computer graphics, or an application? It's time to let you know! Reference your work in just a few clicks and increase your visibility.{% endtrans %}

    {% endblock %}
    {% endblock %} {% endcache %} {% endblock %}