{% from 'macros/dataset-part.html' import dataset_part_collapsible, add_parts %} {% if dataset %}
{% else %}
{% endif %} {% if parts | length == 0 %} No dataset parts {% else %} {% if pages %} {% with swap_target="#dataset-parts" %} {% include 'includes/pagination-buttons.html' %} {% endwith %} {% endif %}
slug created {% if review %} {% else %}
{% endif %}
{% for part in parts if part.visible_to(current_account) %} {{ dataset_part_collapsible(part, dataset, current_account, config, review) }} {% endfor %} {% if pages %} {% with swap_target="#dataset-parts" %} {% include 'includes/pagination-buttons.html' %} {% endwith %} {% endif %} {% endif %}
{% if current_account and not review %} {{ add_parts(dataset) }} {% endif %}