{% macro datasets_section(nb=5) %} {% from theme('macros/certified.html') import badge_if_certified with context %} {% if recent_datasets %}

Jeu de données à la Une

{% for dataset in current_site.settings.home_datasets[:1] %}
{% if dataset.organization %} {{ badge_if_certified(dataset.organization) }} {% else %} {% endif %}

{{ dataset.full_title }}

{{ dataset.description|mdstrip(180) }}
{% for resource in dataset.resources %} {% if resource.type == 'main' and resource.preview_url %} {% else %} {% endif %} {% endfor %}
  • {{ dataset.resources | length }}
  • {% if dataset.metrics %}
  • {{ dataset.metrics.reuses or 0 }}
  • {{ dataset.metrics.followers or 0 }}
  • {% endif %} {# Temporal coverage #} {% if dataset.temporal_coverage %}
  • {{ dataset.temporal_coverage|daterange }}
  • {% endif %} {# Territorial coverage #} {% if dataset.spatial.zones %}
  • {{ dataset.spatial.top_label }}
  • {% endif %} {# Territorial granularity #} {% if dataset.spatial and dataset.spatial.granularity and dataset.spatial.granularity != 'other' %}
  • {{ dataset.spatial.granularity_label }}
  • {% endif %}
{% endfor %}

Dernières contributions

{% for dataset in recent_datasets[:nb] %}
{% include theme('dataset/card.html') %}
{% endfor %}
{# End datasets section #} {% endif %} {% endmacro %}