{% extends theme('layouts/1-column.html') %} {% set meta = { 'title': topic.name, 'description': topic.description|mdstrip(60)|forceescape, 'keywords': [_('topic')] + topic.tags, } %} {% set bundle = 'topic' %} {% set body_class = 'topic-display' %} {% block breadcrumb %}
  • {{ _('Topics') }}
  • {{ topic.name }}
  • {% endblock %} {% block main_content %} {% cache cache_duration, 'topic-content', topic.id|string, g.lang_code %}

    {{ topic.name }}

    {{ topic.description|markdown }}

    {{ _('Latest reuses') }}

    {% if recent_reuses %} {% endif %}
    {# Datasets section #} {% set dataset_tabs = ( ('popular-datasets', _('Featured datasets'), datasets, {}), ('recent-datasets', _('Latest datasets'), recent_datasets, {'sort': '-created'}), ) %}
    {# Dataset tabs #} {% if dataset_tabs %} {% for tab_id, label, datasets, kwargs in dataset_tabs %}

    {{label}}

      {% for dataset in datasets %}
    • {% include theme('dataset/card-xs.html') %}
    • {% endfor %}

    {{ _('See more datasets') }}

    {% endfor %} {% endif %} {# end Dataset tabs #}
    {# End datasets section #}
    {% endcache %} {% endblock %}